On Tue, 2020-06-23 at 11:08 -0400, bruce wrote:
I'm looking to copy from sourceDir to targetDir where the entire
targetDir (parents) doesn't exist. So I'm trying to rsync and create
the dir path at the same time.
I quick google search for: rsync create parents
produced this:
https://stackoverflow.com/questions/18491548/rsync-create-all-missing-par...
rsync - create all missing parent directories?
Dec 24, 2014 - You may be looking for rsync -aR. for example:
rsync -a --relative /top/a/b/c/d remote:/
While I've not used rsync, I've come across that situation with using
"cp" (creating all the parent directories you need for the files you
want to copy, without copying the entire directory tree, files and
all).
--
uname -rsvp
Linux 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
Boilerplate: All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.