File tree 2 files changed +1
-2
lines changed
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ bash、rsync、systemd、jq、sponge
10
10
11
11
```
12
12
/
13
- ├── 1.txt
14
13
├── etc
15
14
│ ├── mugi
16
15
│ │ └── mugi.conf
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ change_status "start"
142
142
143
143
echo " Start sync ${TASK_NAME} at $( date +" %Y-%m-%d %H:%M:%S" ) " >> ${LOG_FILE}
144
144
echo " Start sync ${TASK_NAME} :)"
145
- rsync -avrtH --delay-updates --delete-after --timeout=${TIME_OUT} --bwlimit=${BANDWITH_LIMIT} ${UP_STREAM} ${LOCAL_PATH} >> ${LOG_FILE} 2>&1
145
+ rsync -aHvh --no-o --no-g --stats --exclude= ' .~tmp~/ ' --filter= ' risk .~tmp~/ ' --delete --delete-after -- delay-updates --delete-excluded --safe-links --timeout=${TIME_OUT} --bwlimit=${BANDWITH_LIMIT} ${UP_STREAM} ${LOCAL_PATH} >> ${LOG_FILE} 2>&1
146
146
if [[ $? -ne 0 ]]
147
147
then
148
148
change_status " failed"
You can’t perform that action at this time.
0 commit comments