From d4f132eebd88b5f9331780614c26d5c466b67294 Mon Sep 17 00:00:00 2001 From: gitea Date: Thu, 19 Oct 2023 20:38:59 +0800 Subject: [PATCH] [modify] renew frpc-visitor origin path, and move cert sync to first day of month --- update/backups.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/update/backups.sh b/update/backups.sh index dca1089..f990674 100644 --- a/update/backups.sh +++ b/update/backups.sh @@ -19,11 +19,7 @@ cp -rf /etc/samba/smb.conf /opt/configs/conf/ cp -rf /etc/network/interfaces /opt/configs/conf/ cp -rf /root/.acme.sh/*ecc /opt/configs/acme/ cp -rf /opt/scripts/update/restore.sh /opt/apps/syncthing/data/common/F_Backup/Linux/ -cp -rf /opt/apps/syncthing/data/common/A_Program/FRP/* /opt/apps/frp/frpc-xtcp-visitor -scp -r /opt/configs/certs/ arm1:/opt/ > /dev/null & -scp -r /opt/configs/certs/ arm2:/opt/ > /dev/null & -scp -r /opt/configs/certs/ amd:/opt/ > /dev/null & -wait +cp -rf /opt/wd/25-Syncthing/common/A_Program/FRP/* /opt/apps/frp/frpc-xtcp-visitor cd /opt && t=`date +%Y%m%dT%H%M%S` rsync --delete-after -avz --exclude=apps/localcr/B_koel/local/music apps configs logs scripts websites wd/72-Backups/VPS/ > /opt/logs/rsync/rsync_${t}.log @@ -45,6 +41,10 @@ fi if [[ `date +%d` == '01' ]]; then t=`date +%Y%m%d%H%M%S` tar -I pixz -cf /opt/wd/72-Backups/vps-${t}.tar.gz /opt/wd/72-Backups/VPS > /dev/null 2>&1 + scp -r /opt/configs/certs/ arm1:/opt/ 2>&1 /dev/null & + scp -r /opt/configs/certs/ arm2:/opt/ 2>&1 /dev/null & + scp -r /opt/configs/certs/ amd:/opt/ 2>&1 /dev/null & + wait fi set +x echo End Time: `date`