Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:33:19 -05:00
parent 6645993d8e
commit 1135bacfbe

View File

@@ -593,11 +593,16 @@ BACKUP_OFFSITEPFSENSE(){
echo $i
keep=0
if [[ "${i}" == *"-D"* ]]; then
echo daily
filestokeep=${dailyfilestokeep[@]}
elif [[ "${i}" == *"-W"* ]]; then
echo weekly
filestokeep=${weeklyfilestokeep[@]}
elif [[ "${i}" == *"-M"* ]]; then
echo monthyl
filestokeep=${monthlyfilestokeep[@]}
else
echo nothing
fi
for a in ${!filestokeep}; do
[ "${i}" == "${a}" ] && keep=1