On 04/13/2015 05:30 AM, Victor Villa wrote:
> Sorry Dan, you did say automated.  Here is the step to achieve this.
>
> (which addresses supplying the password, whilst invoking the command.)
>
> rsync -ave ssh u...@someserver.com:/path/at/remote/ /path/local
>

Just to clarify, if you need some funky tunnel option, like using rsh or
a specific ssh option, you can use -e to specify the tunnel and options
to use.  If everything you need is in your ssh_config (which is usually
the case anyhow), you can drop the -e option and just use the normal
scp-like source and destination format:

rsync -av u...@host.com:/path/at/remote /path/local

The scp-like URI will be enough to tell rsync to start ssh, tell the
remote side to start an rsync daemon listening on the ssh tunnel, and
proceed to sync via the tunnel.  Rsync will only use the unencrypted
rsync port if you use an rsync:// URI, or you put two colons in your
scp-like URI, like so:

rsync -av user@host::/path/at/remote /path/local


Grazie,
;-Daniel

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to