Answer the question
In order to leave comments, you need to log in
How to force rsync to create missing directories?
For example:
rsync -avr --delete /home/serjantiquity/work/mam/src/1/3q/RS /home/serjantiquity/work/mam/dst/1/3q
Answer the question
In order to leave comments, you need to log in
On SO, it is advised to use this hack:
--rsync-path="mkdir -p /home/serjantiquity/work/mam/dst/1/3q && rsync"
rsync -avr --delete /home/serjantiquity/work/mam/src/1/3q/RS/ /home/serjantiquity/work/mam/dst/1/3q/RS/
The trailing slashes are important.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question