File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ END_EXCLUDES
222
222
223
223
# =================================================================
224
224
# SCRIPT INITIALIZATION & SETUP
225
- # v0.14 - 2025.08.10
225
+ # v0.15 - 2025.08.10
226
226
# =================================================================
227
227
set -Euo pipefail
228
228
umask 077
@@ -286,7 +286,7 @@ LOCK_FILE="/tmp/backup_rsync.lock"
286
286
MAX_LOG_SIZE=10485760 # 10 MB in bytes
287
287
288
288
RSYNC_BASE_OPTS=(
289
- -aR -z --delete --partial --timeout=60
289
+ -a -z --delete --partial --timeout=60
290
290
--exclude-from=" $EXCLUDE_FILE_TMP "
291
291
-e " ssh ${SSH_OPTS_STR:- } "
292
292
)
@@ -331,7 +331,7 @@ send_notification() {
331
331
}
332
332
333
333
run_integrity_check () {
334
- local rsync_check_opts=(-aincR -c --delete --exclude-from=" $EXCLUDE_FILE_TMP " --out-format=" %n" -e " ssh ${SSH_OPTS_STR:- } " )
334
+ local rsync_check_opts=(-ainc -c --delete --mkpath --exclude-from=" $EXCLUDE_FILE_TMP " --out-format=" %n" -e " ssh ${SSH_OPTS_STR:- } " )
335
335
336
336
for dir in $BACKUP_DIRS ; do
337
337
local remote_path=" ${REMOTE_TARGET}${dir#/ } "
@@ -527,7 +527,7 @@ for dir in $BACKUP_DIRS; do
527
527
528
528
RSYNC_LOG_TMP=$( mktemp)
529
529
RSYNC_EXIT_CODE=0
530
- RSYNC_OPTS=(" ${RSYNC_BASE_OPTS[@]} " )
530
+ RSYNC_OPTS=(" ${RSYNC_BASE_OPTS[@]} " --mkpath )
531
531
532
532
if [[ " $VERBOSE_MODE " == " true" ]]; then
533
533
RSYNC_OPTS+=(--info=stats2,progress2)
You can’t perform that action at this time.
0 commit comments