Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:33:56 -05:00
parent 1135bacfbe
commit 59162899a0

View File

@@ -593,17 +593,13 @@ 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
echo ${filestokeep}
for a in ${!filestokeep}; do
[ "${i}" == "${a}" ] && keep=1
done;