For all who replied!
Thanks for taking a few mins to read/reply. I had seen the
-"-rsync-path" running the "mkdir" cmd being used for running the
mkdir on the remote side. My case was definitely looking to copy files
locally between a Source and Destination Dir. So, I was looking to
implement the "cp -p" with rsync on a local VM. This was a curious
test kind of thing to see if it could easily be accomplished. as
opposed to simply running two separate cmds.
mkdir -p /foo/cat/etc..
cp -vaR Source Target
which is what I finally punted to doing!
ps. The idea of using localhost was also looked at!
On Wed, Jun 24, 2020 at 2:01 AM Tim via users
<users(a)lists.fedoraproject.org> wrote:
>
> 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.
>
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)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