Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2000 01:53:29 -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.0012070140040.8927-100000@mail.carracing.com>
In-Reply-To: <B155B68E3C16D411BAB100508BAD0AEB308B3B@exchange01.athensnetwork.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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'
ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - /usr/src | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - /A       | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc2 'dump 0uBbf 2000000 10 - /B       | ssh cyc1 dd
of=/dev/nrst0 bs=10b'

ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /        | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /tmp     | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /var     | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /usr     | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /usr/src | ssh cyc1 dd
of=/dev/nrst0 bs=10b'
ssh -n -l operator cyc3 'dump 0uBbf 2000000 10 - /A       | ssh cyc1 dd
of=/dev/nrst0 bs=10b'

mt -f /dev/rst0 rewind

^^SNIP^^

Good Luck,

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 Wed, 6 Dec 2000, Aaron Navratil wrote:

> 	has anyone sucessfully dumped a file system to a remote host using
> ssh if so can you show me your script or command line options? 
> TIA -Aaron
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



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.0012070140040.8927-100000>