From e3dda89f0f2fea0cbc37e32945ffed73cd28ade3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:09:38 -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 35eff214..3141a13e 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}`)