Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 20:07:25 -05:00
parent 3a8b720827
commit 83b7d43332

View File

@@ -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}`)