From 507f87ef4fd5910a0ccffcc580b4ae1ab3e39d38 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 30 May 2026 14:41:42 +0100 Subject: [PATCH] Correct chmods. Use ALL, not * for doing a full sync. --- mirror | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirror b/mirror index 201a4c0..2159951 100755 --- a/mirror +++ b/mirror @@ -17,8 +17,8 @@ MAX_RUNS="3" # Maximum number of runs IPV4="5.101.171.215" DATADIR="/data/depository" 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_LOCAL_OPTIONS=('-aH' '--chmod=go-w,+rX' '--partial' '--partial-dir=.rsync-tmp' '--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=u+w,go-w,Dugo+rx,Fugo+rX' '--partial' '--partial-dir=.rsync-tmp' '--delay-updates') # RSYNC_VERBOSE=('--verbose' '--human-readable') # RSYNC_VERBOSE=('--progress' '--verbose' '--stats' '--human-readable') LFTP_COMMAND="/usr/bin/lftp" @@ -207,7 +207,7 @@ while [[ -n "$1" ]]; do exit 0 ;; *) - if [[ "$1" == "*" ]]; then + if [[ "$1" == "ALL" ]]; then SYNC_ALL=1 shift break