From bf95c58668197b2aba6dff3b4fa041494e814999 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:00:03 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 86dccf9b..7da05303 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -573,12 +573,12 @@ UPDATE_DYNDNS(){ BACKUP_OFFSITEPFSENSE(){ BAKFOLDER=/mnt/BU-Raid1/Offsite-pfSense_Backups/`date +%Y%m%d-%H%M` - mkdir ${BAKFOLDER} + newBAKFOLDER=${BAKFOLDER}/`date +%Y%m%d-%H%M` + mkdir ${newBAKFOLDER} ssh root@10.2.1.1 tar -c -f /cf/conf/conf_backup.tar.gz /cf/conf - scp root@10.2.1.1:/cf/conf/conf* ${BAKFOLDER}/ + scp root@10.2.1.1:/cf/conf/conf* ${newBAKFOLDER}/ ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz - #scp root@10.2.1.1:/cf/conf/config.xml ${BAKFOLDER}/config.xml [ "${BackupsToKeep}" == "" ] && BackupsToKeep=2 files=(`ls -1 ${BAKFOLDER}/* | tail -${BackupsToKeep}`)