Compare commits

...

2 Commits

Author SHA1 Message Date
e0b5bfbdcd [omdify] make a copy of localip.txt to /opt/wd/99-Temp 2023-07-24 15:54:59 +08:00
41cfb25650 [omdify] add new rsync for syncthing 2023-07-24 15:54:14 +08:00
2 changed files with 2 additions and 0 deletions

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

View File

@ -12,4 +12,5 @@ for network in ${networks[@]}; do
done
sed -i '/^$/d' $localip
cp $localip /opt/apps/syncthing/data/common/Z-TMP/