<div class="gmail_quote">On Tue, Nov 24, 2009 at 1:49 AM, Gerard Mensoif <span dir="ltr">&lt;<a href="mailto:mensoif_gerard@yahoo.fr">mensoif_gerard@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
rsync  --rsync-path=&#39;sudo rsync&#39; --rsh=&#39;/usr/bin/ssh -x&#39; --archive user@localhost:/etc/shadow user@server2:/etc/shadow<br></blockquote><div><br>One end of the transfer has to be local (even a host named &quot;localhost&quot; is not local), so one thing you can do is to use two rsync commands (pull, then push).  Or just make sure that the sending side of the transfer is running rsync as root (e.g. use sudo to run the local rsync too).<br>
<br>Also, a modern rsync would have exited with an error about your invalid two-server syntax, so you may wish to upgrade to something newer.<br></div><br></div>..wayne..<br>