ssh & rsync equivalence?

Morgan Read
Wed, 01 Apr 2009 10:37:44 -0000

On 29/03/09 17:15, Morgan Read wrote:
> Hello Folks
>
...

On 30/03/09 04:45, Kyle Lanclos wrote:
> I suggest putting your 'ssh -i /some/key/here' into a small shell
script,
> so that you do:
>
> rsync -e rsync_ssh
>
> ...and rsync_ssh looks like:
>
> #! /bin/sh
>
> exec ssh -i /home/key/here "$@"
>
> I think the single ticks in the -e option might be throwing something
> for a loop.

[root@morgansoldmachine ~]# ssh -t rsync@morgansmachine sudo rsync
-avzAXHn --delete-after -e /home/rsync/bin/rsync_ssh /etc
root@morgansoldmachine:/media/bigdisk/morgansmachine/etc
building file list ... done
created directory /media/bigdisk/morgansmachine/etc
etc/
etc/.pwd.lock
etc/.sudoers.tmp.swp
...
etc/yum/pluginconf.d/presto.conf
etc/yum/pluginconf.d/protect-packages.conf
etc/yum/pluginconf.d/whiteout.conf

sent 138652 bytes  received 17900 bytes  18417.88 bytes/sec
total size is 165558833  speedup is 1057.53 (DRY RUN)
Connection to 192.168.1.40 closed.
[root@morgansoldmachine ~]#


Eureka!!!  I've done it!
Well, not me - thank you everyone.
Morgan.

--
Getting errors: "There are problems with the signature" (or similar)?
Update your system by installing certificates from CAcert Inc, see here:
http://wiki.cacert.org/wiki/BrowserClients?#head-259758ec5ba51c5205cfb179cf60e0b54d9e378b
Or, if Internet Explorer is your default browser, simply click this link:
http://www.cacert.org/index.php?id=17

Morgan Read
NEW ZEALAND
<mailto:mstuffATreadDOTorgDOTnz>

fedora + freedom; fact || fiction?
http://fedoraproject.org/wiki/Overview
get freed-ora!