Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:29:37 -05:00
parent f61cf7a4d0
commit 9872977fe1

View File

@@ -581,9 +581,9 @@ BACKUP_OFFSITEPFSENSE(){
ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz
if [ "$(date +%u)" == "4" ]; then
cp ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
elif [ "$(date +%d)" == "24" ]; then
cp ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
fi
dailyfilestokeep=(`ls -d ${BAKFOLDER}/*-D | tail -2`) >/dev/null 2>&1