mirror of
https://github.com/donl/vzpbackup.git
synced 2026-06-30 06:11:58 -06:00
ensure that --all or --inc is given
This commit is contained in:
parent
9387c1c1f2
commit
4c5b401454
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue