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 <[email protected]> wrote: From: RSCL Mumbai <[email protected]> Subject: Re: [ILUG-BOM] Need help with Rsync over SSh -- shell script To: "GNU/Linux Users Group, Mumbai, India" <[email protected]> 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/ [email protected]:/var/www/html/ -- http://mm.glug-bom.org/mailman/listinfo/linuxers -- http://mm.glug-bom.org/mailman/listinfo/linuxers

