From owner-freebsd-hackers Thu Jan 18 17:41:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA20897 for hackers-outgoing; Thu, 18 Jan 1996 17:41:45 -0800 (PST) Received: from Aspen.Woc.Atinc.COM ([198.138.38.206]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA20888 for ; Thu, 18 Jan 1996 17:41:31 -0800 (PST) Received: (from jmb@localhost) by Aspen.Woc.Atinc.COM (8.6.12/8.6.9) id UAA24086; Thu, 18 Jan 1996 20:40:19 -0500 Date: Thu, 18 Jan 1996 20:40:17 -0500 (EST) From: "Jonathan M. Bresler" X-Sender: jmb@Aspen.Woc.Atinc.COM To: Daniel Leeds cc: hackers@freebsd.org Subject: Re: dump help In-Reply-To: <199601181527.PAA02628@sponsor.octet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk 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