Page 1 of 1

Incorrect backup counter v16

Posted: Wed Jun 29, 2016 2:22 pm
by alexcy
Hello,

After updating to v16, the backup counter shows 2/1 instead of 1/1 backups. When I click update counters it is set correctly (1/1) but after the backup script executes again it goes to 2/1.

Any ideas?

Re: Incorrect backup counter v16

Posted: Wed Jun 29, 2016 2:43 pm
by skurudo
OS?

Only 1 backup in Package?

Re: Incorrect backup counter v16

Posted: Wed Jun 29, 2016 2:49 pm
by alexcy
Ubuntu 14.04 x64. Yes, the package limit is 1.

Re: Incorrect backup counter v16

Posted: Wed Jun 29, 2016 6:02 pm
by alexcy
I have had this problems in previous versions (older than 15) and it stopped with reinstallation of the server. But I can't reinstall to server each time I want to fix things.

Re: Incorrect backup counter v16

Posted: Wed Jun 29, 2016 10:14 pm
by alexcy
Ok, I think I have found a solution. The number is higher because it counts the .log file as well (even though it gets deleted in the process)

I have made the following change to the v-backup-user file:

Replaced:
U_BACKUPS=$(ls $BACKUP/ |grep "^$user." |wc -l)

With:
U_BACKUPS=$(ls $BACKUP/ |grep "^$user.*.tar" |wc -l)


I am pretty sure there is a better way to do this. If anyone has a better idea or can make a change in github, please do.

Thank you.