Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Incorrect backup counter v16

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
Incorrect backup counter v16
  • Quote

Post by alexcy » Wed Jun 29, 2016 2:22 pm

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?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Incorrect backup counter v16
  • Quote

Post by skurudo » Wed Jun 29, 2016 2:43 pm

OS?

Only 1 backup in Package?
Top

alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Incorrect backup counter v16
  • Quote

Post by alexcy » Wed Jun 29, 2016 2:49 pm

Ubuntu 14.04 x64. Yes, the package limit is 1.
Top

alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Incorrect backup counter v16
  • Quote

Post by alexcy » Wed Jun 29, 2016 6:02 pm

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.
Top

alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Incorrect backup counter v16
  • Quote

Post by alexcy » Wed Jun 29, 2016 10:14 pm

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.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password