Update pfsense-backup.sh

This commit is contained in:
2020-08-22 01:32:30 +02:00
committed by GitHub
parent b158aa4676
commit 1e42636d4b
+3
View File
@@ -65,6 +65,9 @@ if [ $cron -eq 1 ]; then
crond -f crond -f
else else
do_backup do_backup
if [ ! -z $keepfiles ]; then
ls -d -1tr $destination/* | head -n -$keepfiles | xargs -d '\n' rm -f
fi
fi fi
else else
do_backup do_backup