mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
web backup scheduler
This commit is contained in:
parent
293b70fcf2
commit
bbba9aeb34
13 changed files with 278 additions and 80 deletions
12
func/main.sh
12
func/main.sh
|
@ -158,6 +158,18 @@ is_backup_enabled() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Check user backup settings
|
||||
is_backup_scheduled() {
|
||||
if [ -e "$VESTA/data/queue/backup.pipe" ]; then
|
||||
check_backup=$(grep " $user " $VESTA/data/queue/backup.pipe)
|
||||
if [ ! -z "$check_backup" ]; then
|
||||
echo "Error: backup is already scheduled"
|
||||
log_event "$E_EXISTS" "$EVENT"
|
||||
exit $E_EXISTS
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if object is free and can be created
|
||||
is_object_free() {
|
||||
if [ $2 = 'USER' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue