From the
rsync man page:
Code:
-e, --rsh=COMMAND
This option allows you to choose an alternative remote shell
program to use for communication between the local and remote
copies of rsync. Typically, rsync is configured to use ssh by
default, but you may prefer to use rsh on a local network.
If this option is used with [user@]host::module/path, then the
remote shell COMMAND will be used to run an rsync daemon on the
remote host, and all data will be transmitted through that
remote shell connection, rather than through a direct socket
connection to a running rsync daemon on the remote host. See
the section "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL
CONNECTION" above.
Command-line arguments are permitted in COMMAND provided that
COMMAND is presented to rsync as a single argument. You must
use spaces (not tabs or other whitespace) to separate the com-
mand and args from each other, and you can use single- and/or
double-quotes to preserve spaces in an argument (but not back-
slashes). Note that doubling a single-quote inside a single-
quoted string gives you a single-quote; likewise for double-
quotes (though you need to pay attention to which quotes your
shell is parsing and which quotes rsync is parsing).
(emphasis added)
So I think you could do something like:
Code:
rsync -ae "ssh -q" /source-dir ${REMOTE_HOST}:/destination-dir