Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2000 10:55:23 -0500
From:      Mitch Collinsworth <mkc@Graphics.Cornell.EDU>
To:        butch@sheltonbbs.com
Cc:        freebsd-isp@FreeBSD.ORG, mkc@benge.graphics.cornell.edu
Subject:   Re: trouble with backups  [was: null subject]
Message-ID:  <200002111555.KAA39268@benge.graphics.cornell.edu>
In-Reply-To: Message from Butch Evans <butch@sheltonbbs.com>  of "Thu, 10 Feb 2000 22:16:19 CST." <00021022190000.19678@systemadmin.sheltonbbs.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

>I am having trouble with my backups (dump).  Here is the script that I am usin
>g:
>
>--START SCRIPT--
>#!/bin/csh
>
>/sbin/dump 0usd 6000 54000 /
>/sbin/dump 0usd 6000 54000 /usr
>/sbin/dump 0usd 6000 54000 /var
>mt rewind
>/usr/bin/mt offline
>--END SCRIPT--
>
>What happens is the backup works, but it rewinds the tape before each
>filesystem (leaving only the /var dump on the tape).  What is the correct dump
>command to use?

Offhand the behavior you describe sounds like you are writing to a
rewind-on-close device, but your script is "designed" to use a
no-rewind device.  But there is nothing here that says what device
you are writing to.  Are you just allowing dump to default to rsa0?
(which is in fact rewind-on-close)   Backup scripts should never use
defaults.  This sets you up for a nasty surprise down the road when
you upgrade.  If this correct, then you need to add "-f /dev/nrsa0"
to your dump commands to send the output to the no-rewind device.

-Mitch


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002111555.KAA39268>