From af558f33f9f3e8934bcc76265c2e18831e1330ae Mon Sep 17 00:00:00 2001 From: gitea Date: Sat, 14 Oct 2023 13:55:41 +0800 Subject: [PATCH] [modify] not sync music dir of koel, and fix name error of syncthing --- update/backups.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/backups.sh b/update/backups.sh index aa99f71..f18ab76 100644 --- a/update/backups.sh +++ b/update/backups.sh @@ -18,14 +18,14 @@ cp -rf /root/.ssh/config /opt/configs/conf/ 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/scripts/update/restore.sh /opt/apps/syncthing/data/common/F_Backup/Linux/ 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 cd /opt && t=`date +%Y%m%dT%H%M%S` -rsync --delete-after -avz apps configs logs scripts websites wd/72-Backups/VPS/ > /opt/logs/rsync/rsync_${t}.log +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 rsync --delete-after -avz /opt/apps/syncthing/data/* wd/72-Backups/Syncthing/ > /opt/logs/rsync/rsync_${t}.log cd /opt/logs/rsync/ let count=`ls | wc -l`