We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351d2a7 commit 9059167Copy full SHA for 9059167
bin/v-backup-user
@@ -499,7 +499,7 @@ local_backup(){
499
backup_list=$(ls -lrt $BACKUP/ |awk '{print $9}' |grep "^$user\." | grep ".tar")
500
backups_count=$(echo "$backup_list" |wc -l)
501
if [ "$BACKUPS" -le "$backups_count" ]; then
502
- backups_rm_number=$((backups_count - BACKUPS))
+ backups_rm_number=$((backups_count - BACKUPS + 1))
503
504
# Removing old backup
505
for backup in $(echo "$backup_list" |head -n $backups_rm_number); do
0 commit comments