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-parent-directories
  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.
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to