From 161ee8583cd79765ec035c41e6073e3858f849f2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 22:02:50 -0500 Subject: [PATCH] update --- defaults.inc | 4 ++-- nodemgmt-scripts.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/defaults.inc b/defaults.inc index 4d427729..232719d2 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,7 +1,7 @@ #!/usr/bin/env bash -VERS='4.11.5-08242023' +VERS='4.11.10-08242023' -noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns ' +noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense ' CERT_DAEMON='/snap/bin/certbot' NM_FOLDER=/opt/idssys/nodemgmt NM_SCRIPT=${NM_FOLDER}/nodemgmt-scripts.sh diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6e570a0b..366f5fd2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -576,9 +576,9 @@ BACKUP_OFFSITEPFSENSE(){ newBAKFOLDER=${BAKFOLDER}/`date +%Y%m%d-%H%M%S`-D 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 + 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 if [ "$(date +%u)" == "1" ]; then cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}