From owner-freebsd-questions Sun Oct 17 12: 0:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 0EE2114E57 for ; Sun, 17 Oct 1999 12:00:17 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA73643; Sun, 17 Oct 1999 14:00:15 -0500 (CDT) (envelope-from dan) Date: Sun, 17 Oct 1999 14:00:14 -0500 From: Dan Nelson To: Gregory Carvalho Cc: FreeBSD Questions Subject: Re: Difficulty with dump(8) Message-ID: <19991017140014.C72953@dan.emsphone.com> References: <380A1E76.F5E343FC@stcinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <380A1E76.F5E343FC@stcinc.com>; from GregoryC@stcinc.com on Sun, Oct 17, 1999 at 12:07:34PM -0700 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 17), Gregory Carvalho said: > I have created the following script, and I am executing it on FreeBSD > 3.2R with a HP DDS3 tape drive. It is not creating a volume for each > of the file systems on a single DDS3 cartridge, which I desire it to > do. > > #!/usr/local/bin/bash > > mt -f /dev/rsa0 erase 0 > for filesys in / /var /usr > do > dump -0au -f /dev/rsa0 $filesys > done > mt -f /dev/rsa0 offline > > Yesterday, I issued: > dump -0au -f /dev/rsa0 / > dump -0au -f /dev/rsa0 /var > > as a test, and it created two volumes on tape. "mt -f /dev/rsa0 fsf 1" > displayed /var and "mt -f /dev/rsa0 bsf 1" display /. This cannot have worked. /dev/rsa0 rewinds after each use, so your second dump must have overwritten the first. You want to use /dev/nrsa0 instead. Also the "erase" at the beginning is unnecessary. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message