samba-bugs@samba.org
2005-Jul-15 19:01 UTC
[Bug 2873] Including username and hostname in both source and dest fails
https://bugzilla.samba.org/show_bug.cgi?id=2873 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From wayned@samba.org 2005-07-15 11:58 ------- As mentioned in the manpage, rsync does not support a remote-to-remote copy. Rsync currently treats the second of the args as a local filename that just happens to have a colon in it. Rsync should probably be improved to notice that the second spec appears to be a host-spec and reject it, but it does not at the moment. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2005-Jul-15 19:22 UTC
[Bug 2873] Including username and hostname in both source and dest fails
https://bugzilla.samba.org/show_bug.cgi?id=2873 ------- Additional Comments From wayned@samba.org 2005-07-15 12:01 ------- Created an attachment (id=1314) --> (https://bugzilla.samba.org/attachment.cgi?id=1314&action=view) Reject both source and destination specifying a host Here's a patch to make rsync reject the case when both the source and destination are remote. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2005-Jul-15 21:21 UTC
[Bug 2873] Including username and hostname in both source and dest fails
https://bugzilla.samba.org/show_bug.cgi?id=2873 ------- Additional Comments From wayned@samba.org 2005-07-15 14:07 ------- I had meant to include some suggestions for remote-to-remote copying but forgot. Let's remedy that. Let's say you wish to be able to run "rsync -av host1:file host2:" from host3. You could do one of two things: ssh host1 rsync -av file host2: That logs into host1 and does a copy of a local file to host2 directly, which works if you can ssh from host1 to host2. Alternately, if you must use host3 as a bridge between host1 and host2, do this: ssh host1 rsync -av --rsync-path="ssh host2 rsync" file host3: That logs into host1 and does a copy of a local file seemingly to host3 (that's the host where it connects), but we told host3 to run the rsync command remotely on host2, so the file is really being sent to host2 through host3. This only works if you've configured ssh to allow logins without prompting for a password, which is possible if you've setup some signed keys and you allow the forwarding of ssh-agent (or if you've setup some kind of host-based authentication). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.