From 83b7d433320e5d2105f24e75a1b8d4290c07f26f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:07:25 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a27110f5..fcbeee9d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -574,11 +574,11 @@ UPDATE_DYNDNS(){ BACKUP_OFFSITEPFSENSE(){ BAKFOLDER=/mnt/BU-Raid1/Offsite-pfSense_Backups 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* ${newBAKFOLDER}/ - ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz + # 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* ${newBAKFOLDER}/ + # ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz [ "${BackupsToKeep}" == "" ] && BackupsToKeep=2 files=(`ls -d ${BAKFOLDER}/* | tail -${BackupsToKeep}`)