[Gllug] rsync over ssh

general_email at technicalbloke.com general_email at technicalbloke.com
Fri Dec 18 13:00:50 UTC 2009


Andy Millar wrote:
> On Fri, 2009-12-18 at 10:47 +0000, Adrian McMenamin wrote:
>   
>> so I try rsync -ave ssh -p [odd port number]
>> root at remoteserver:/var/www/somedirectory/ ./backup
>>
>> and I get "Unexpected remote arg: root at remoteserver:/var/www/somedirectory/"
>>
>> What have I done wrong?
>>     
>
> >From the rsync man page you might want:
>
> rsync -av -e "ssh -p PORT" root at remoteserver:/dir/ ./backup
>
> Andy
>   



Interesting, I've never tried it but I'd always assumed that's what the
colon was for, like in http requests i.e.

rsync -axP ssh_account at 192.168.1.1:32323/whatever/
/home/user/backups/whatever/

I take it that won't work then?

Roger.



-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list