Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2000 01:59:36 -0500 (EST)
From:      Bill Desjardins <bill@carracing.com>
To:        Aaron Navratil <anavratil@icplanet.com>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: dump over ssh
Message-ID:  <Pine.BSF.4.21.0012070156080.8927-100000@mail.carracing.com>
In-Reply-To: <Pine.BSF.4.21.0012070140040.8927-100000@mail.carracing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012070156080.8927-100000>