From owner-freebsd-questions Wed Dec 6 23: 0:12 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 23:00:09 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail.carracing.com (mail.carracing.com [12.24.160.15]) by hub.freebsd.org (Postfix) with ESMTP id 427C737B400 for ; Wed, 6 Dec 2000 23:00:09 -0800 (PST) Received: from localhost (bill@localhost) by mail.carracing.com (8.9.2/8.9.1) with ESMTP id BAA08983; Thu, 7 Dec 2000 01:59:36 -0500 (EST) Date: Thu, 7 Dec 2000 01:59:36 -0500 (EST) From: Bill Desjardins To: Aaron Navratil Cc: "'freebsd-questions@freebsd.org'" Subject: Re: dump over ssh In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Aaron, Just to be perfectly clear :), the cyc(1,2,3) words in the script is just the hostnames of the boxes this script was backing up. replace to your setup accordingly. Bill -- Bill Desjardins - bill@carracing.com - (USA) 305.205.8644 Unix/Network Administration - Perl/Mod_Perl/DB Development http://www.CarRacing.com - Powered by mod_perl! FREE WebHosting for Race Tracks, Race Teams and Race Shops On Thu, 7 Dec 2000, Bill Desjardins wrote: > Aaron, > > This brought up fond memories :) I used this script a long time ago when I > opened my first business as an ISP and I found an old tar file (4+ yrs > old) with it still in it, so here you go, it worked great for me. This > script runs on the backup server and then logs into each machine thru ssh > as the operater user and then executes a dump back to the backup > server. This did level 0 dumps each time mostly becuase I was much more > paranoid back then and I was still fairly new to FreeBSD and UNIX in > general. You could easily turn this into a much more functional script > very easily. you will need to set up an account (operator in my case) that > has all the permissions necessary to execute the script. > > NOTE: this was using a 8gb HP DAT drive as the hardware > > __SNIP__ > > PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin > > mt -f /dev/rst0 rewind > > dump 0uBbf 2000000 10 /dev/nrst0 / > dump 0uBbf 2000000 10 /dev/nrst0 /tmp > dump 0uBbf 2000000 10 /dev/nrst0 /var > dump 0uBbf 2000000 10 /dev/nrst0 /usr > dump 0uBbf 2000000 10 /dev/nrst0 /usr/src > dump 0uBbf 2000000 10 /dev/nrst0 /A > dump 0uBbf 2000000 10 /dev/nrst0 /B > > ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - / | ssh cyc1 dd > of=/dev/nrst0 bs=10b' > ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - /tmp | ssh cyc1 dd > of=/dev/nrst0 bs=10b' > ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - /usr | ssh cyc1 dd > of=/dev/nrst0 bs=10b' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message