[Gllug] rsync over ssh

Andy Millar andy at andymillar.co.uk
Fri Dec 18 10:56:04 UTC 2009


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
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list