try this rsync --progress --stats --archive -z --compress --rsh='ssh -p 44444' -t <domain name>:<filepath> <destpath>
for pulling data
--- On Fri, 23/4/10, RSCL Mumbai rscl.mumbai@gmail.com wrote:
From: RSCL Mumbai rscl.mumbai@gmail.com Subject: Re: [ILUG-BOM] Need help with Rsync over SSh -- shell script To: "GNU/Linux Users Group, Mumbai, India" linuxers@mm.ilug-bom.org.in Date: Friday, 23 April, 2010, 6:01 PM
#!/usr/bin/expect -f
spawn rsync -e "ssh -p 2222" -arvz
I suspect this syntax. -e ssh --port=2222 should be there without any "" double inverted commas
The below command works fine from command line: rsync -e "ssh -p 2222" -arvz --delete /var/www/html/ root@192.168.1.44:/var/www/html/