Update backup.sh

This commit is contained in:
2020-08-22 01:35:21 +02:00
committed by GitHub
parent 083f94b831
commit 3d0223e4c9
+1 -1
View File
@@ -61,5 +61,5 @@ timestamp=$(date +%Y%m%d%H%M%S)
do_backup do_backup
if [ ! -z $keepfiles ]; then 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 fi