Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:35:17 -05:00
parent 48061eb9d7
commit 73f2e0951c

View File

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