fix stop on failed cp

This commit is contained in:
olli 2024-04-25 11:58:39 +02:00
parent bc5eed591f
commit 646020b5c4

View File

@ -145,7 +145,7 @@ var-lib-docker
g_runcmd $sshopts mkdir -p "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" || continue
# Create hardlinks before rsync because of some strange behaviour with "rsync --link-dest="
[ -n "$BACKUPSRVPATH_LINK_DEST" ] && g_runcmd $sshopts cp -rlfTP "$BACKUPSRVPATH_LINK_DEST"/ "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE"/ || continue
[ -n "$BACKUPSRVPATH_LINK_DEST" ] && g_runcmd $sshopts cp -rlfTP "$BACKUPSRVPATH_LINK_DEST"/ "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE"/
else
BACKUPSRVPATH_WITH_DATE_INCOMPLETE="$BACKUPSRVPATH"