first scan over all files to prevent after copy created hardlinks

This commit is contained in:
olli 2022-12-12 12:40:03 +01:00
parent fbfd8a1c9e
commit 44b984860f

View File

@ -86,7 +86,7 @@ var-lib-docker
sshopts="g_retrycmd ssh -n -p $BACKUPSRVPORT -o BatchMode=yes -o StrictHostKeyChecking=accept-new $BACKUPSRVUSER@$BACKUPSRV"
fi
rsyncopts="-aXAh --timeout=180 --force --delete --ignore-missing-args --inplace --partial"
rsyncopts="-aXAh --no-inc-recursive --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'"
[ "$BACKUPSRVUSER" == "root" ] && syncopts="$rsyncopts --numeric-ids"