rsync install help

Andrew Y Ng ayn at AndrewNg.com
Fri Sep 5 13:55:52 PDT 2003


I would also look into keychain, this way u won't have to have a
passphrase-less ssh key...

i rsync a bunch of stuff in cron with ssh and keychain:
25  2   *   *   *   . ~/.ssh-agent-${HOSTNAME} && rsync -av /foo/* bar.foo.com:foo/

/ayn

On  0, Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
> On Fri, Sep 05, 2003 at 02:39:27PM -0400, Brent Bailey wrote:
> > Im using FBSD 4.8rc1 ..IM getting ready to install rsync to help with
> > mirroring to another redundant FBSD box. I was wondering if anyone could
> > point me a a good howto for this ?
> 
> Oooh... an easy one.
> 
>     # cd /usr/ports/net/rsync
>     # make install
>  
> > any and all help is greatly appreciated
> 
> Actually, I guess you aren't asking so much about how to install
> rsync(1), as how to do the mirroring to the second machine.
> 
> The thing to realise is that rsync on FreeBSD runs over ssh(1) by
> default.  Presumably you want the rsync job to happen automatically,
> which means you need to set up a mechanism by which ssh(1) can
> authenticate to the other machine without stopping to input a
> password.
> 
> That's explained here:
> 
>     http://www.snailbook.com/faq/no-passphrase.auto.html
> 
> Once you've got the authentication bit working, then it's simply a
> matter of running something derived from this at regular intervals:
> 
>     #!/bin/sh
> 
>     remote="sparehost.example.com"
> 
>     fslist="/ /usr /home"
> 
>     for fs in $fslist ; 
>     do
>       rsync -azx --delete ${remote}:${fs}/ ${fs}/
>     done
> 
> Note that you'll need to run as root on both ends of the connection,
> which implies that you'll be allowing root access without a password
> from one machine to the other, so you need to pay attention to the
> features available in the authorized_keys file to ameliorate the
> damage possible should the key be stolen.
> 
> 	Cheers,
> 
> 	Matthew
> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
>                                                       Savill Way
> PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
> Tel: +44 1628 476614                                  Bucks., SL7 1TH UK



-- 
andrew y ng  <ayn at andrewng.com>  http://andrewng.com
independent computer consultants http://aynassociates.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030905/a9d2ffbc/attachment.bin


More information about the freebsd-questions mailing list