This commit is contained in:
2023-08-24 22:02:50 -05:00
parent 3db2c671b8
commit 161ee8583c
2 changed files with 5 additions and 5 deletions

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