ensure that --all or --inc is given

This commit is contained in:
TamCore 2014-10-12 01:56:33 +02:00
parent 9387c1c1f2
commit 4c5b401454

View file

@ -55,6 +55,11 @@ if [ "$BACKUP_VES" = "" ]; then
exit 1
fi
if [ "$INC_BACKUP" = "no" ] && [ "$FULL_BACKUP" = "no" ]; then
echo "Neither --inc(remental) or --full given.."
exit 1
fi
# LOCKFILE
test -f /var/run/vzbackup.pid && exit 0
touch /var/run/vzbackup.pid