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