fix stop on failed cp
This commit is contained in:
parent
bc5eed591f
commit
646020b5c4
@ -145,7 +145,7 @@ var-lib-docker
|
|||||||
g_runcmd $sshopts mkdir -p "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" || continue
|
g_runcmd $sshopts mkdir -p "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" || continue
|
||||||
|
|
||||||
# Create hardlinks before rsync because of some strange behaviour with "rsync --link-dest="
|
# 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
|
else
|
||||||
BACKUPSRVPATH_WITH_DATE_INCOMPLETE="$BACKUPSRVPATH"
|
BACKUPSRVPATH_WITH_DATE_INCOMPLETE="$BACKUPSRVPATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user