Changes

Jump to navigation Jump to search

Tutorial for model free SBiNLab

266 bytes added, 09:31, 15 October 2017
TO=${RUSER}@${SAURON}:/data/sbinlab2/${RUSER}/Downloads/${PROJ}
# -a: "archive" and - archive mode; equals -rlptgoD (no -H,-A,-X). syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions.# We want to remove the -o and -g options:# -o, --owner preserve owner (super-user only)# -g, --group preserve group# -rlptD : Instead or# -a --no-o --no-g
# -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:
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync -aPzhn aPzh --no-o --no-g -n ${FROM} ${TO}
else
echo "Not doing DRY RUN"
if [[ $REPLY =~ ^[Yy]$ ]]; then
rsync -aPzh --no-o --no-g ${FROM} ${TO}
else
echo "Not doing anything"
Trusted, Bureaucrats
1,382

edits

Navigation menu