diff --git a/backup.sh b/backup.sh index c754333..4af5253 100755 --- a/backup.sh +++ b/backup.sh @@ -61,5 +61,5 @@ timestamp=$(date +%Y%m%d%H%M%S) do_backup if [ ! -z $keepfiles ]; then - ls -d -1tr $destination/* | head -n -$keepfiles | xargs -d '\n' rm -f + ls -d -1tr $destination/*.xml | head -n -$keepfiles | xargs -d '\n' rm -f fi