[omdify] add new rsync for syncthing

This commit is contained in:
gitea 2023-07-24 15:54:14 +08:00
parent 2b4d9f1bf5
commit 41cfb25650

View File

@ -21,6 +21,7 @@ cp -rf /opt/scripts/update/restore.sh /opt/apps/syncthing/data/common/F-Backup/L
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 /opt/apps/syncthing/data/* wd/72-Backups/Syncthing/ > /opt/logs/rsync/rsync_${t}.log
cd /opt/logs/rsync/
let count=`ls | wc -l`
if [[ $count -gt 10 ]]; then