This commit is contained in:
olli 2023-02-06 14:09:19 +01:00
parent 8e3bb9be1b
commit a688cedd11

View File

@ -142,7 +142,10 @@ var-lib-docker
[ -n "$NODIRSTRUCT" ] && continue [ -n "$NODIRSTRUCT" ] && continue
# if backups from this day already exists move it to $BACKUPSRVPATH_WITH_DATE-$$-old # if backups from this day already exists move it to $BACKUPSRVPATH_WITH_DATE-$$-old
$sshopts test -e "$BACKUPSRVPATH_WITH_DATE" && $sshopts mv "$BACKUPSRVPATH_WITH_DATE" "$BACKUPSRVPATH_WITH_DATE-$$-old" if $sshopts test -e "$BACKUPSRVPATH_WITH_DATE"
then
$sshopts mv "$BACKUPSRVPATH_WITH_DATE" "$BACKUPSRVPATH_WITH_DATE-$$-old"
fi
# move from -incomplete to default dir # move from -incomplete to default dir
g_runcmd $sshopts mv "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" "$BACKUPSRVPATH_WITH_DATE" || continue g_runcmd $sshopts mv "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" "$BACKUPSRVPATH_WITH_DATE" || continue