rsync with ssh on FC3

Ankush Grover ankush174 at gmail.com
Mon Jan 23 12:45:09 UTC 2006


On 1/23/06, Gilboa Davara <gilboad at gmail.com> wrote:
>
> On Mon, 2006-01-23 at 11:44 +0530, Ankush Grover wrote:
> > hey friends,
> >
> >
> > I am trying to copy the contents of some directories(/opt & /home) on
> > my servers to another machine through rsync. The problem I am facing
> > is that  ssh is very restricted in my domain that is
> >
> >          ssh is running on some other port(50,000)
> >          only few users r allowed access.
> >
> >
> > rsync -pzv -e "ssh -l demo --port=50000" --progress demo at host::mail
> /home/demo/ demo.swx
> >
> > demo is the user on other machine and it has the rights to do ssh, the
> > machine is running on port 50000
> > and the file i want to copy is demo.swx.Right now I am trying to copy
> > only one file but I need to copy few directories.
> >
> > what should be the syntax of rsync for my scenario.
> >
> >
> > Thanks & Regards
> >
> > Ankush Grover
> >
> >
>
> I doubt that there is a direct solution.
> I'd create a SSH tunnel to the machine, and run rsync on top of it (by
> connecting to the local mirrored port).
> ssh (-C) -L <local port>:<remote IP>:<remote port>
>
> Gilboa
>
> --
>
Hey,

rsync -avz -e "ssh -p 50000" filetocopy demo at host:/path

you can test with this (it will not copy the file but shows you the stats
like speed ,bytes transfered or any errors if there any etc...)

rsync -avz -e "ssh -p 50000" filetocopy demo at host:/path

Thanks & Regards

Ankush Grover
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060123/5929b7a8/attachment-0001.htm>


More information about the fedora-list mailing list