Skip to content

Commit d299dba

Browse files
committed
update rsync options
1 parent 315e547 commit d299dba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ bash、rsync、systemd、jq、sponge
1010

1111
```
1212
/
13-
├── 1.txt
1413
├── etc
1514
│   ├── mugi
1615
│   │   └── mugi.conf

mugi

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ change_status "start"
142142

143143
echo "Start sync ${TASK_NAME} at $(date +"%Y-%m-%d %H:%M:%S")" >> ${LOG_FILE}
144144
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
146146
if [[ $? -ne 0 ]]
147147
then
148148
change_status "failed"

0 commit comments

Comments
 (0)