mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
parent
351d2a78cf
commit
9059167db7
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ local_backup(){
|
|||
backup_list=$(ls -lrt $BACKUP/ |awk '{print $9}' |grep "^$user\." | grep ".tar")
|
||||
backups_count=$(echo "$backup_list" |wc -l)
|
||||
if [ "$BACKUPS" -le "$backups_count" ]; then
|
||||
backups_rm_number=$((backups_count - BACKUPS))
|
||||
backups_rm_number=$((backups_count - BACKUPS + 1))
|
||||
|
||||
# Removing old backup
|
||||
for backup in $(echo "$backup_list" |head -n $backups_rm_number); do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue