backup2me.sh: Specify rsync protocol

This commit is contained in:
Alice Gaudon 2019-10-25 22:39:49 +02:00
parent 2ea5ebfc65
commit 35ccb1b9d9

View File

@ -53,10 +53,10 @@ eval "$BEFORE_SCRIPT"
### Create local model of the remote's backup directory tree and send it ###
mkdir -p "$BACKUP_CONTENTS_PATH"
rsync --timeout=30 -avzhP --relative $BACKUP_CONTENTS_PATH $BACKUP_TARGET
rsync --timeout=30 --protocol=30 -avzhP --relative $BACKUP_CONTENTS_PATH $BACKUP_TARGET
### Backup home directory except some unwanted files ###
rsync --timeout=30 -avzhP --delete --inplace $BACKUP_EXCLUSIONS --backup --backup-dir=../$BACKUP_ARCHIVE $BACKUP_DIRECTORY $BACKUP_TARGET/$BACKUP_CONTENTS_PATH
rsync --timeout=30 --protocol=30 -avzhP --delete --inplace $BACKUP_EXCLUSIONS --backup --backup-dir=../$BACKUP_ARCHIVE $BACKUP_DIRECTORY $BACKUP_TARGET/$BACKUP_CONTENTS_PATH
### Remove local model of the backup directory tree ###
rm -R "$BACKUP_ROOT_PATH"