backup2me.sh: Specify rsync protocol
This commit is contained in:
parent
2ea5ebfc65
commit
35ccb1b9d9
@ -53,10 +53,10 @@ eval "$BEFORE_SCRIPT"
|
|||||||
|
|
||||||
### Create local model of the remote's backup directory tree and send it ###
|
### Create local model of the remote's backup directory tree and send it ###
|
||||||
mkdir -p "$BACKUP_CONTENTS_PATH"
|
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 ###
|
### 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 ###
|
### Remove local model of the backup directory tree ###
|
||||||
rm -R "$BACKUP_ROOT_PATH"
|
rm -R "$BACKUP_ROOT_PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user