Skip to content

Commit bfa6598

Browse files
committed
added user backup/restore logging
1 parent 955a5c4 commit bfa6598

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/v-schedule-user-backup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ is_backup_scheduled 'backup'
3434
#----------------------------------------------------------#
3535

3636
# Adding backup task to the queue
37-
echo "$BIN/v-backup-user $user yes" >> $VESTA/data/queue/backup.pipe
37+
log=$VESTA/log/backup.log
38+
echo "$BIN/v-backup-user $user yes >> $log 2>&1" >>\
39+
$VESTA/data/queue/backup.pipe
3840

3941

4042
#----------------------------------------------------------#

bin/v-schedule-user-restore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ is_backup_scheduled 'restore'
4141
#----------------------------------------------------------#
4242

4343
# Adding restore task to the queue
44+
log=$VESTA/log/restore.log
4445
options="'$web' '$dns' '$mail' '$db' '$cron' '$udir'"
45-
echo "$BIN/v-restore-user $user $backup $options yes" \
46-
>> $VESTA/data/queue/backup.pipe
46+
echo "$BIN/v-restore-user $user $backup $options yes >> $log 2>&1" >>\
47+
$VESTA/data/queue/backup.pipe
4748

4849

4950
#----------------------------------------------------------#

0 commit comments

Comments
 (0)