Friday 15 October 2010

rsync on a non standard port

If you have a machine with an ssh server that listens on a port other than the default 22 then you need to modify the way you would normally invoke the rsync command.

rsync -parv --inplace -e "ssh -p 2222" $source $dest

1 comment:

Anonymous said...

Have you (or anybody else) considered using unison for this? As it syncs bidirectional it would eliminated some risks and maybe also allow a parallel use.