From 9872977fe150e66f4c626e8e04bd7aba1fe8e512 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 21:29:37 -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 9f13c9fd..f4f35049 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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