Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

bugfix remove old backup Topic is solved

Section with modification and patches for Vesta
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
Minor
Posts: 2
Joined: Fri Jun 27, 2014 4:02 pm

bugfix remove old backup

Post by Minor » Sat Jul 19, 2014 3:40 pm

I use Vesta in 0.9.8-9 version on CentOS 6.5 x64
And vesta did not remove old backups. I set limit backups for account.

In v-beckup-user script is:

Code: Select all

# Checking retention
    backup_list=$(ls -lrt $BACKUP/ | awk '{print $9}' |grep "^$user\.")
    backups_count=$(echo "$backup_list" | wc -l)
Problem is with awk command. Show 9th column but ls returning only 8 columns.

I change script on:

Code: Select all

# Checking retention
    backup_list=$(ls -lrt $BACKUP/ | awk '{print $8}' |grep "^$user\.")
    backups_count=$(echo "$backup_list" | wc -l)
And works fine.
Top

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

Re: bugfix remove old backup

Post by skurudo » Wed Feb 14, 2018 6:49 am

Closed due inactivity.
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “Modification & Patches”



  • 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
 

 

Login  •  Register

I forgot my password