Skip to content

Commit 11488ce

Browse files
authored
Merge pull request #18 from buildplan/fix_path
Fix for path issue
2 parents 21b5df8 + eec5e10 commit 11488ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ END_EXCLUDES
222222

223223
# =================================================================
224224
# SCRIPT INITIALIZATION & SETUP
225-
# v0.14 - 2025.08.10
225+
# v0.15 - 2025.08.10
226226
# =================================================================
227227
set -Euo pipefail
228228
umask 077
@@ -286,7 +286,7 @@ LOCK_FILE="/tmp/backup_rsync.lock"
286286
MAX_LOG_SIZE=10485760 # 10 MB in bytes
287287

288288
RSYNC_BASE_OPTS=(
289-
-aR -z --delete --partial --timeout=60
289+
-a -z --delete --partial --timeout=60
290290
--exclude-from="$EXCLUDE_FILE_TMP"
291291
-e "ssh ${SSH_OPTS_STR:-}"
292292
)
@@ -331,7 +331,7 @@ send_notification() {
331331
}
332332

333333
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:-}")
335335

336336
for dir in $BACKUP_DIRS; do
337337
local remote_path="${REMOTE_TARGET}${dir#/}"
@@ -527,7 +527,7 @@ for dir in $BACKUP_DIRS; do
527527

528528
RSYNC_LOG_TMP=$(mktemp)
529529
RSYNC_EXIT_CODE=0
530-
RSYNC_OPTS=("${RSYNC_BASE_OPTS[@]}")
530+
RSYNC_OPTS=("${RSYNC_BASE_OPTS[@]}" --mkpath)
531531

532532
if [[ "$VERBOSE_MODE" == "true" ]]; then
533533
RSYNC_OPTS+=(--info=stats2,progress2)

0 commit comments

Comments
 (0)