Page 1 of 1

bugfix remove old backup

Posted: Sat Jul 19, 2014 3:40 pm
by Minor
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.

Re: bugfix remove old backup

Posted: Wed Feb 14, 2018 6:49 am
by skurudo
Closed due inactivity.