From e2800c27fe1e60f4fdfa80d25d8323f2fea8b80a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:45:59 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 99c70774..aee8c488 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -580,7 +580,7 @@ BACKUP_OFFSITEPFSENSE(){ scp root@10.2.1.1:/cf/conf/conf* ${newBAKFOLDER}/ ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz - [ "${BackupsToKeep}" == "" ] && BackupsToKeep= + [ "${BackupsToKeep}" == "" ] && BackupsToKeep=3 files=(`ls -d ${BAKFOLDER}/* | tail -${BackupsToKeep}`) for i in $(ls -d ${BAKFOLDER}/*); do keep=0