diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f6eae76b..de8c1414 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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[@]}