Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:56:26 -05:00
parent c7e6c970b5
commit f7a6c8c521

View File

@@ -590,7 +590,7 @@ BACKUP_OFFSITEPFSENSE(){
dailyfilestokeep=(`ls -d ${BAKFOLDER}/*-D 2> /dev/null | tail -7`)
weeklyfilestokeep=(`ls -d ${BAKFOLDER}/*-W 2> /dev/null | tail -4`)
monthlyfilestokeep=(`ls -d ${BAKFOLDER}/*-M 2> /dev/null | tail -12`)
for i in $(ls -d ${BAKFOLDER}/*); do; keep=0
for i in $(ls -d ${BAKFOLDER}/*); do keep=0
if [[ "${i}" == *"-D"* ]]; then
filestokeep=${dailyfilestokeep[@]}
elif [[ "${i}" == *"-W"* ]]; then