Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 1996 20:40:17 -0500 (EST)
From:      "Jonathan M. Bresler" <jmb@freebsd.org>
To:        Daniel Leeds <cosmos@sponsor.octet.com>
Cc:        hackers@freebsd.org
Subject:   Re: dump help
Message-ID:  <Pine.BSF.3.91.960118202430.23971G-100000@Aspen.Woc.Atinc.COM>
In-Reply-To: <199601181527.PAA02628@sponsor.octet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Jan 1996, Daniel Leeds wrote:

> I need a daily backup and was told to use dump.  I read the man page, but 
> dont exactly understand how to set this up.
> 
> any kind soul wish to give me a step by step how-to on implementing this 
> under freebsd?

decide which filesystems you want to create backups of. (use df 
	to get at list of filesystems)
determine the size of your backup media
select a block size (say 10kB)
exmine the output of /sbin/dmesg, find your backup device (hopefully st0)
do some trial dumps

	/sbin/dump 0unBbf 1200000 10 /dev/nrst0 /dev/sd0a
                   |||||| |       |  |    |            |
                   |||||| |       |  |    |            |
                   |||||| |       |  |    |            \___ the root  
                   |||||| |       |  |    |                 filesystem on
                   |||||| |       |  |    |                 the first 
                   |||||| |       |  |    |                 scsi disk
                   |||||| |       |  |    |
                   |||||| |       |  |    \___ the `norewind' scsi tape
                   |||||| |       |  |
                   |||||| |       |  \__ the backup device, the first (only?)
                   |||||| |       |      scsi tape drive (arg for `f' option)
                   |||||| |       |
                   |||||| |       \___ the argument to `b'  10kBytes per block
                   |||||| |       
                   |||||| \____ the number of blocks per tape.  (1.2 GB here)
		   ||||||       arg for `B'
                   ||||||
                   |||||\______ the device flag (in place of the default)
                   ||||\_______ the blocksize flag
                   |||\________ the # of blocks flag
		   ||\_________ dump should use wall(1) if there is a problem
                   |\__________ update the /etc/dumpdates file
		   \___________ dump EVERY thing to tape

after each trial rewind the tape
	/usr/bin/mt -f /dev/rst0 rewind
once you are happy with the result, create a little script to dump each
filesystem in turn:

Aspen:[32] more /root/dump.4mm
#!/bin/sh
echo "" >> dump.log
echo "" >> dump.log
echo "" >> dump.log
/usr/bin/mt -f /dev/rst0 rewind
/sbin/dump 0unBbf 1200000 10 /dev/nrst0 /dev/sd1a 2>&1 | tee -a  /root/dump.log
/sbin/dump 0unBbf 1200000 10 /dev/nrst0 /dev/sd1e 2>&1 | tee -a  /root/dump.log
/sbin/dump 0unBbf 1200000 10 /dev/rst0 /dev/sd1f 2>&1  | tee -a  /root/dump.log
/usr/bin/mt -f /dev/rst0 rewoffl

	(if you use the above dont forget to rotate /root/dump.log once in 
	 a while.)


Jonathan M. Bresler        FreeBSD Postmaster         jmb@FreeBSD.ORG
play go. ride bike. hack FreeBSD.--ah the good life 
i am moving to a new job.                 PLEASE USE: jmb@FreeBSD.ORG




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