From 53d7f27a36bcd6098e29064558bf50ce32e26dfe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Sep 2023 15:09:14 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c4d34ed1..9352d076 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -580,11 +580,11 @@ BACKUP_OFFSITEPFSENSE(){ scp root@10.2.1.1:/cf/conf/conf* ${newBAKFOLDER}/ ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz - if [ "$(date +%d)" == "01" ] && [ "$(date +%u)" == "1" ]; then + if [ "$(date +%d)" == "04" ] && [ "$(date +%u)" == "1" ]; then mv ${newBAKFOLDER} "${newBAKFOLDER}-M" ln -s "${newBAKFOLDER}-W" "${newBAKFOLDER}-M" ln -s "${newBAKFOLDER}-D" "${newBAKFOLDER}-M" - elif [ "$(date +%d)" == "01" ]; then + elif [ "$(date +%d)" == "04" ]; then mv ${newBAKFOLDER} "${newBAKFOLDER}-M" ln -s "${newBAKFOLDER}-D" "${newBAKFOLDER}-M" elif [ "$(date +%u)" == "1" ]; then