Update nodemgmt-scripts.sh

This commit is contained in:
2023-10-30 22:26:34 -05:00
parent b8be36655f
commit e98c3c100d

View File

@@ -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