[omdify] add new rsync for syncthing
This commit is contained in:
parent
2b4d9f1bf5
commit
41cfb25650
@ -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`
|
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 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/
|
cd /opt/logs/rsync/
|
||||||
let count=`ls | wc -l`
|
let count=`ls | wc -l`
|
||||||
if [[ $count -gt 10 ]]; then
|
if [[ $count -gt 10 ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user