Update pfsense-backup.sh
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ if [ $cron -eq 1 ]; then
|
||||
else
|
||||
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
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user