added rsync-options --one-file-system --open-noatime

This commit is contained in:
olli 2023-01-03 13:31:04 +01:00
parent bfe9e343de
commit 8f254e85f9

View File

@ -90,7 +90,7 @@ var-lib-docker
sshopts="g_retrycmd ssh -n -p $BACKUPSRVPORT -o BatchMode=yes -o StrictHostKeyChecking=accept-new $BACKUPSRVUSER@$BACKUPSRV"
fi
rsyncopts="-aXAh --no-inc-recursive --timeout=180 --force -yy --delete-after --ignore-missing-args --partial"
rsyncopts="-aXAh --no-inc-recursive --timeout=180 --force -yy --one-file-system --open-noatime --delete-after --ignore-missing-args --partial"
[ -n "$BACKUPEXCLUDES" ] && rsyncopts="$rsyncopts --delete-excluded --exclude-from=$BACKUPEXCLUDES"
[ -n "$BACKUPSRV" ] && rsyncopts="$rsyncopts -e 'ssh -p $BACKUPSRVPORT'"
[ "$BACKUPSRVUSER" == "root" ] && syncopts="$rsyncopts --numeric-ids"