From 35ccb1b9d9212d7d058aa27c65b2a342f37b3072 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Fri, 25 Oct 2019 22:39:49 +0200 Subject: [PATCH] backup2me.sh: Specify rsync protocol --- backup2me.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup2me.sh b/backup2me.sh index 22e73c2..d3dd8eb 100755 --- a/backup2me.sh +++ b/backup2me.sh @@ -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"