Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 1996 12:37:56 +0930 (CST)
From:      Peter Childs <pjchilds@imforei.apana.org.au>
To:        BRETT_GLASS@ccgate.infoworld.com
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: Backing up a FreeBSD system
Message-ID:  <199609040307.MAA20526@al.imforei.apana.org.au>
In-Reply-To: <9608038417.AA841777029@ccgate.infoworld.com> from "BRETT_GLASS@ccgate.infoworld.com" at "Sep 3, 96 11:02:04 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Peter:

 Gday!

> Could you elaborate on your technique of using rsync and ssh to perform
> backups? Do you have sample scripts we might use to try this method?

 You need ssh installed on both computers, and rsync.  You'll need to
 enable the key based or host based authentication from one machine to the
 other as "root"..

 Then i just use a shell script with something like...

 mount /dev/od0a /od
 cd /od
 rsync -rptDogHxv --delete -e ssh chuckie:// /od/chuckie 2>&1 | mail -s "chuckie
 remote backup pt1" sa-tech@sa
 rsync -rptDogHxv --delete --exclude 'history*' -e ssh chuckie://usr/local/ /od/
 chuckie_local 2>&1 | mail -s "chuckie remote backup pt2" sa-tech@sa
 umount /dev/od0a

 Which backs up our news server, leaving out the history file of course :)
 (and the news spool etc)

 The documentation for rsync is pretty good, and ssh is a beautiful
 piece of code :)

 Regards,
   Peter

--
 Peter Childs  ---  http://www.imforei.apana.org.au/~pjchilds
  Finger pjchilds@al.imforei.apana.org.au for public PGP key
         Drag me, drop me, treat me like an object!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609040307.MAA20526>