bugfix remove old backup
Posted: 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:
Problem is with awk command. Show 9th column but ls returning only 8 columns.
I change script on:
And works fine.
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)
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)