Skip to content

Commit d974b60

Browse files
author
Serghey Rodin
committed
Fix for backup count
1 parent 6eca748 commit d974b60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-backup-user

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,6 @@ local_backup(){
509509
localbackup='yes'
510510
echo -e "$(date "+%F %T") Local: $BACKUP/$user.$date.tar" |\
511511
tee -a $BACKUP/$user.log
512-
U_BACKUPS=$(ls $BACKUP/ |grep "^$user." |wc -l)
513-
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
514512
}
515513

516514

@@ -807,6 +805,9 @@ chmod 660 $USER_DATA/backup.conf
807805
# Deleting task from queue
808806
sed -i "/v-backup-user $user /d" $VESTA/data/queue/backup.pipe
809807

808+
U_BACKUPS=$(grep BACKUP $USER_DATA/backup.conf |wc -l)
809+
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
810+
810811
# Send notification
811812
if [ -e "$BACKUP/$user.log" ]; then
812813
subj="$user → backup has been completed"

0 commit comments

Comments
 (0)