Correct chmods. Use ALL, not * for doing a full sync.
This commit is contained in:
parent
5e74f99272
commit
507f87ef4f
1 changed files with 3 additions and 3 deletions
6
mirror
6
mirror
|
|
@ -17,8 +17,8 @@ MAX_RUNS="3" # Maximum number of runs
|
||||||
IPV4="5.101.171.215"
|
IPV4="5.101.171.215"
|
||||||
DATADIR="/data/depository"
|
DATADIR="/data/depository"
|
||||||
RSYNC_COMMAND="/usr/bin/rsync"
|
RSYNC_COMMAND="/usr/bin/rsync"
|
||||||
RSYNC_REMOTE_OPTIONS=('-4' "--address=$IPV4" '--no-motd' '--contimeout=30' '--timeout=60' '-aH' '--no-owner' '--no-group' '--chmod=go-w,+rX' '--partial' '--partial-dir=.rsync-tmp' '--delete-delay' '--delay-updates')
|
RSYNC_REMOTE_OPTIONS=('-4' "--address=$IPV4" '--no-motd' '--contimeout=30' '--timeout=60' '-aH' '--no-owner' '--no-group' '--no-perms' '--chmod=u+w,go-w,Dugo+rx,Fugo+rX' '--partial' '--partial-dir=.rsync-tmp' '--delete-delay' '--delay-updates')
|
||||||
RSYNC_LOCAL_OPTIONS=('-aH' '--chmod=go-w,+rX' '--partial' '--partial-dir=.rsync-tmp' '--delay-updates')
|
RSYNC_LOCAL_OPTIONS=('-aH' '--chmod=u+w,go-w,Dugo+rx,Fugo+rX' '--partial' '--partial-dir=.rsync-tmp' '--delay-updates')
|
||||||
# RSYNC_VERBOSE=('--verbose' '--human-readable')
|
# RSYNC_VERBOSE=('--verbose' '--human-readable')
|
||||||
# RSYNC_VERBOSE=('--progress' '--verbose' '--stats' '--human-readable')
|
# RSYNC_VERBOSE=('--progress' '--verbose' '--stats' '--human-readable')
|
||||||
LFTP_COMMAND="/usr/bin/lftp"
|
LFTP_COMMAND="/usr/bin/lftp"
|
||||||
|
|
@ -207,7 +207,7 @@ while [[ -n "$1" ]]; do
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ "$1" == "*" ]]; then
|
if [[ "$1" == "ALL" ]]; then
|
||||||
SYNC_ALL=1
|
SYNC_ALL=1
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue