From 3d0223e4c9bbe6e4eeaadf4c1e08bedc1fe1ae43 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal <40464775+daniel156161@users.noreply.github.com> Date: Sat, 22 Aug 2020 01:35:21 +0200 Subject: [PATCH] Update backup.sh --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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