mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-07 00:37:24 +02:00
added user backup/restore logging
This commit is contained in:
@@ -34,7 +34,9 @@ is_backup_scheduled 'backup'
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Adding backup task to the queue
|
||||
echo "$BIN/v-backup-user $user yes" >> $VESTA/data/queue/backup.pipe
|
||||
log=$VESTA/log/backup.log
|
||||
echo "$BIN/v-backup-user $user yes >> $log 2>&1" >>\
|
||||
$VESTA/data/queue/backup.pipe
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
||||
@@ -41,9 +41,10 @@ is_backup_scheduled 'restore'
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Adding restore task to the queue
|
||||
log=$VESTA/log/restore.log
|
||||
options="'$web' '$dns' '$mail' '$db' '$cron' '$udir'"
|
||||
echo "$BIN/v-restore-user $user $backup $options yes" \
|
||||
>> $VESTA/data/queue/backup.pipe
|
||||
echo "$BIN/v-restore-user $user $backup $options yes >> $log 2>&1" >>\
|
||||
$VESTA/data/queue/backup.pipe
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
||||
Reference in New Issue
Block a user