Open main menu

Changes

Tutorial for model free SBiNLab

1,138 bytes added, 10:01, 14 October 2017
# Start relax
mpirun -np 20 relax --multi='mpi4py' 04_run_default_with_tolerance_lim.py -t 04_run_default_with_tolerance_lim.log
</source>
 
== rsync files after completion to Sauron ==
 
<source lang="bash">
#!/bin/bash
 
read -p "Username on sauron :" -r
 
RUSER=$REPLY
SAURON=10.61.4.60
PROJ=`basename "$PWD"`
 
FROM=${PWD}
TO=${RUSER}@${SAURON}:/data/sbinlab2/${RUSER}/Downloads/${PROJ}
 
# -a: "archive" and syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions.
# -z: Compression over network
# -P: It combines the flags --progress and --partial. The first of these gives you a progress bar for the transfers and the second allows you to resume interrupted transfers:
# -h, Output numbers in a more human-readable format.
 
# Always double-check your arguments before executing an rsync command.
# -n
 
echo "I will now do a DRY RUN, which does not move files"
read -p "Are you sure? y/n :" -n 1 -r
echo ""
 
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync -aPzhn ${FROM} ${TO}
else
echo "Not doing DRY RUN"
fi
 
 
echo ""
 
echo "I will now do the sync of files"
read -p "Are you sure? y/n :" -n 1 -r
echo ""
 
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync -aPzh ${FROM} ${TO}
else
echo "Not doing anything"
fi
</source>
Trusted, Bureaucrats
1,382

edits