fix test
This commit is contained in:
parent
8e3bb9be1b
commit
a688cedd11
@ -142,7 +142,10 @@ var-lib-docker
|
||||
[ -n "$NODIRSTRUCT" ] && continue
|
||||
|
||||
# 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
|
||||
g_runcmd $sshopts mv "$BACKUPSRVPATH_WITH_DATE_INCOMPLETE" "$BACKUPSRVPATH_WITH_DATE" || continue
|
||||
|
Loading…
Reference in New Issue
Block a user