rsync opts for timeout and force

This commit is contained in:
olli 2022-12-07 08:31:21 +01:00
parent 6e309e9bae
commit 105f8c90da

View File

@ -85,7 +85,7 @@ Nextcloud/
sshopts="g_retrycmd ssh -n -p $BACKUPSRVPORT -o BatchMode=yes -o StrictHostKeyChecking=accept-new $BACKUPSRVUSER@$BACKUPSRV"
fi
rsyncopts="-aXAh --delete --ignore-missing-args --inplace --partial"
rsyncopts="-aXAh --timeout=180 --force --delete --ignore-missing-args --inplace --partial"
[ -n "$BACKUPEXCLUDES" ] && rsyncopts="$rsyncopts --delete-excluded --exclude-from=$BACKUPEXCLUDES"
[ -n "$BACKUPSRV" ] && rsyncopts="$rsyncopts -e 'ssh -p $BACKUPSRVPORT'"