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 2
2
3
3
# =================================================================
4
4
# SCRIPT INITIALIZATION & SETUP
5
- # v0.14 - 2025.08.10
5
+ # v0.15 - 2025.08.10
6
6
# =================================================================
7
7
set -Euo pipefail
8
8
umask 077
@@ -66,7 +66,7 @@ LOCK_FILE="/tmp/backup_rsync.lock"
66
66
MAX_LOG_SIZE=10485760 # 10 MB in bytes
67
67
68
68
RSYNC_BASE_OPTS=(
69
- -aR -z --delete --partial --timeout=60
69
+ -a -z --delete --partial --timeout=60
70
70
--exclude-from=" $EXCLUDE_FILE_TMP "
71
71
-e " ssh ${SSH_OPTS_STR:- } "
72
72
)
@@ -111,7 +111,7 @@ send_notification() {
111
111
}
112
112
113
113
run_integrity_check () {
114
- local rsync_check_opts=(-aincR -c --delete --exclude-from=" $EXCLUDE_FILE_TMP " --out-format=" %n" -e " ssh ${SSH_OPTS_STR:- } " )
114
+ local rsync_check_opts=(-ainc -c --delete --mkpath --exclude-from=" $EXCLUDE_FILE_TMP " --out-format=" %n" -e " ssh ${SSH_OPTS_STR:- } " )
115
115
116
116
for dir in $BACKUP_DIRS ; do
117
117
local remote_path=" ${REMOTE_TARGET}${dir#/ } "
@@ -307,7 +307,7 @@ for dir in $BACKUP_DIRS; do
307
307
308
308
RSYNC_LOG_TMP=$( mktemp)
309
309
RSYNC_EXIT_CODE=0
310
- RSYNC_OPTS=(" ${RSYNC_BASE_OPTS[@]} " )
310
+ RSYNC_OPTS=(" ${RSYNC_BASE_OPTS[@]} " --mkpath )
311
311
312
312
if [[ " $VERBOSE_MODE " == " true" ]]; then
313
313
RSYNC_OPTS+=(--info=stats2,progress2)
You can’t perform that action at this time.
0 commit comments