Darxus@ChaosReigns.com
2003-Oct-24 07:10 UTC
rsync -vae ssh user@host1:/tmp/dir user@host2:/tmp/
I have legitimate ssh access to two remote machines. ssh directly from either machine to the other is blocked by firewalls which I cannot control. $ rsync -vae ssh user@host1:/tmp/dir user@host2:/tmp/ receiving file list ... done rsync: mkdir user@host2:/tmp: No such file or directory rsync error: error in file IO (code 11) at main.c(319) I would like this to copy host1:/tmp/dir into host2:/tmp/. Is there some way to do this that I'm missing ? Without copying the gigabytes of data to my local hard drive first before sending to the second machine (which I'm currently doing) ? (scp has a similar problem, but rsync is often more useful to me) -- "You may be recognized soon. Hide." http://www.ChaosReigns.com
>>>>> "DX" == Darxus <Darxus@ChaosReigns.com> writes:DX> I have legitimate ssh access to two remote machines. ssh directly DX> from either machine to the other is blocked by firewalls which I DX> cannot control. If you are able to make ssh connections from host1 to home then the method outlined in <http://www.mail-archive.com/rsync@lists.samba.org/msg08450.html> will work to transfer from host1 to host2 via home without writing the data to disk on home. I notice that the archive copy has been blatted the command line given in that message. Here's the recipe assume that the usernames on all three machines are identical: host1$ rsync --rsh ssh --rsync-path 'ssh host2 rsync' srcfile home:dstfile