mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Fix for backup count
This commit is contained in:
parent
6eca748bce
commit
d974b601fd
1 changed files with 3 additions and 2 deletions
|
@ -509,8 +509,6 @@ local_backup(){
|
|||
localbackup='yes'
|
||||
echo -e "$(date "+%F %T") Local: $BACKUP/$user.$date.tar" |\
|
||||
tee -a $BACKUP/$user.log
|
||||
U_BACKUPS=$(ls $BACKUP/ |grep "^$user." |wc -l)
|
||||
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
|
||||
}
|
||||
|
||||
|
||||
|
@ -807,6 +805,9 @@ chmod 660 $USER_DATA/backup.conf
|
|||
# Deleting task from queue
|
||||
sed -i "/v-backup-user $user /d" $VESTA/data/queue/backup.pipe
|
||||
|
||||
U_BACKUPS=$(grep BACKUP $USER_DATA/backup.conf |wc -l)
|
||||
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
|
||||
|
||||
# Send notification
|
||||
if [ -e "$BACKUP/$user.log" ]; then
|
||||
subj="$user → backup has been completed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue