rsync over ssh with custom port
by z3n on Oct.29, 2010, under Linux Happyness
Problem:
How to do a rsync with custom ssh port ?
Solution:
This was a bit hard to find, so i’m posting it.
add:
-e “ssh -p PORT_NUMBER -C -oCompressionLevel=9″
to the command, like this:
rsync -azv --bwlimit=400 -e "ssh -p 12345 -C -oCompressionLevel=9" YOUR_HAPPY_USER@YOUR_SERVER:/path/to/files/from/server /path/to/local
Source:
No comments for this entry yet...