Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 21:57:15 -05:00
parent e66beea57e
commit d18da357bf

View File

@@ -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)" == "4" ]; then
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}