Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:32:30 -05:00
parent 2b552f5ac8
commit 6645993d8e

View File

@@ -590,6 +590,7 @@ 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[@]}