From owner-freebsd-hardware Tue Sep 3 20:10:11 1996 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA17542 for hardware-outgoing; Tue, 3 Sep 1996 20:10:11 -0700 (PDT) Received: from al.imforei.apana.org.au (root@al.imforei.apana.org.au [202.12.89.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA17513 for ; Tue, 3 Sep 1996 20:10:00 -0700 (PDT) Received: (from pjchilds@localhost) by al.imforei.apana.org.au (8.7.5/8.7.3) id MAA20526; Wed, 4 Sep 1996 12:37:56 +0930 (CST) From: Peter Childs Message-Id: <199609040307.MAA20526@al.imforei.apana.org.au> Subject: Re: Backing up a FreeBSD system In-Reply-To: <9608038417.AA841777029@ccgate.infoworld.com> from "BRETT_GLASS@ccgate.infoworld.com" at "Sep 3, 96 11:02:04 am" To: BRETT_GLASS@ccgate.infoworld.com Date: Wed, 4 Sep 1996 12:37:56 +0930 (CST) Cc: freebsd-hardware@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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!