added --mkpath to rsync

This commit is contained in:
Cryptoval2 2025-09-13 21:10:51 +00:00
parent fda425c680
commit 1370a80f54
3 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
2.2.8
2.2.9

View File

@ -28,6 +28,7 @@ SourceFile="${DATE}.mktdata.db.gz"
SourceFilePath="${SourceDir}/${SourceFile}"
Cmd="/usr/bin/rsync -ahv"
Cmd+=" --mkpath"
Cmd+=" -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
Cmd+=" ${SOURCE_HOST}:${SourceFilePath}"
Cmd+=" $OUTPUT_DIR/"

View File

@ -214,6 +214,7 @@ eval ${Cmd}
for tgt in ${RSYNC_TARGETS} ; do
Cmd="/usr/bin/rsync -ahv"
Cmd+=" --mkpath"
Cmd+=" -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
Cmd+=" ${ResultDbFile}.gz ${tgt}/${year}/${month}/"
echo ${Cmd}