Re: rsync question?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx> 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-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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux