From e98c3c100d3840c45a2e51ac7b27ae40bfe88730 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 30 Oct 2023 22:26:34 -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 a33dfecf..99dffed0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -622,7 +622,7 @@ BACKUP_OFFSITEPFSENSE(){ weeklyfilestokeep=(`ls -d ${BAKFOLDER}/*-W 2> /dev/null | tail -${WeeklyBackupsToKeep}`) monthlyfilestokeep=(`ls -d ${BAKFOLDER}/*-M 2> /dev/null | tail -${MonthlyBackupsToKeep}`) for folder in $(ls -d ${BAKFOLDER}/*); do - if [ "${folder}" != "mounted" ]; then + if [ "${folder}" != "${BAKFOLDER}/mounted" ]; then if [[ "${folder}" == *"-D"* ]]; then filestokeep=${dailyfilestokeep[@]} elif [[ "${folder}" == *"-W"* ]]; then