error reporting fix

This commit is contained in:
olli 2022-12-07 09:54:23 +01:00
parent 86bbf2f4d3
commit 330c3a652b

View File

@ -131,7 +131,7 @@ Nextcloud/
[ -n "$NODIRSTRUCT" ] && continue
# if backups from this day already exists move it to $BACKUPSRVPATH_WITH_DATE-$$-old
g_runcmd $sshopts test -e "$BACKUPSRVPATH_WITH_DATE" && $sshopts mv "$BACKUPSRVPATH_WITH_DATE" "$BACKUPSRVPATH_WITH_DATE-$$-old"
$sshopts test -e "$BACKUPSRVPATH_WITH_DATE" && $sshopts mv "$BACKUPSRVPATH_WITH_DATE" "$BACKUPSRVPATH_WITH_DATE-$$-old"
# move from -incomplete to default dir
g_runcmd $sshopts mv "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" "$BACKUPSRVPATH_WITH_DATE" || continue