From owner-freebsd-questions Wed Sep 5 13:39: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.avatar.com (ns1.avatar.com [199.33.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 1CF7537B405 for ; Wed, 5 Sep 2001 13:38:59 -0700 (PDT) Received: from tomcat (tomcat.avatar.com [199.33.206.20]) by ns1.avatar.com (8.12.0.Beta8/8.12.0.Beta8) with SMTP id f85KZhUM007610; Wed, 5 Sep 2001 13:35:43 -0700 (PDT) From: "Kory Hamzeh" To: "Todd Reed" , Subject: RE: Dump and Restore Date: Wed, 5 Sep 2001 13:38:28 -0700 Message-ID: <005901c1364a$b7bbc2e0$14ce21c7@avatar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG When running dump and specifying the /dev/n* tape device, dump will write each backup volume as a separate file on the tape. If you do a rewind in between each dump command, you will end up only with the last file system dump'ed to the tape. So make sure you do not issue a rewind (and don't use the tape device that does not begin with "n"). Assuming you did this correctly, you need to use the "mt" command to seek to different volumes. To go to a specific volume on the tape drive, you need to use the "mt fsf" command. For example, assuming your tape is currently rewound, doing a restore at this point will access data backed up in the /tmp file system. If you wanted to restore /var, you need to issue "mt -f /dev/nrsa0 fsf 2". That means move forward 2 file marks. The tape will then be sitting at the begining of the /var volume. Kory > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Todd Reed > Sent: Wednesday, September 05, 2001 1:14 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Dump and Restore > > > When I dump my files to a tape, I use the following method: > > dump -0 -a -f /dev/nrsa0 -n -u /tmp; \ > dump -0 -a -f /dev/nrsa0 -n -u /usr; \ > dump -0 -a -f /dev/nrsa0 -n -u /var; \ > dump -0 -a -f /dev/nrsa0 -n -u /mnt/vdrv > > It runs all the dumps and appears to back everything up. > However, when I do > > restore -i > > and look at the tape, I see only the last file system that was dumped. > > Here's what I'm trying to accomplish: > 1. Backup all file systems on one tape. > 2. Be able to restore any file or directory from the backups to any > file system. > > Does anyone see where I'm going wrong at or what could be done? What are > some methods others use to do this using dump and restore? > > --Todd > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > 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