update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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'
|
CERT_DAEMON='/snap/bin/certbot'
|
||||||
NM_FOLDER=/opt/idssys/nodemgmt
|
NM_FOLDER=/opt/idssys/nodemgmt
|
||||||
NM_SCRIPT=${NM_FOLDER}/nodemgmt-scripts.sh
|
NM_SCRIPT=${NM_FOLDER}/nodemgmt-scripts.sh
|
||||||
|
|||||||
@@ -576,9 +576,9 @@ BACKUP_OFFSITEPFSENSE(){
|
|||||||
newBAKFOLDER=${BAKFOLDER}/`date +%Y%m%d-%H%M%S`-D
|
newBAKFOLDER=${BAKFOLDER}/`date +%Y%m%d-%H%M%S`-D
|
||||||
mkdir ${newBAKFOLDER}
|
mkdir ${newBAKFOLDER}
|
||||||
|
|
||||||
# ssh root@10.2.1.1 tar -c -f /cf/conf/conf_backup.tar.gz /cf/conf
|
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}/
|
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 rm -f /cf/conf/conf_backup.tar.gz
|
||||||
|
|
||||||
if [ "$(date +%u)" == "1" ]; then
|
if [ "$(date +%u)" == "1" ]; then
|
||||||
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
||||||
|
|||||||
Reference in New Issue
Block a user