mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
backup restoration 90% completed
This commit is contained in:
parent
1155e9065e
commit
65db51189c
16 changed files with 330 additions and 99 deletions
|
@ -161,9 +161,9 @@ is_backup_enabled() {
|
|||
# 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"
|
||||
check_q=$(grep " $user " $VESTA/data/queue/backup.pipe | grep $1)
|
||||
if [ ! -z "$check_q" ]; then
|
||||
echo "Error: $1 is already scheduled"
|
||||
log_event "$E_EXISTS" "$EVENT"
|
||||
exit $E_EXISTS
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue