Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2000 10:13:30 -0800 (PST)
From:      Dave Wells <wellsian@caffeine.com>
To:        Gregory Carvalho <GregoryC@stcinc.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: dump/restore problem
Message-ID:  <Pine.BSF.4.21.0002130955320.1275-100000@boris.netgate.net>
In-Reply-To: <38A6ED8D.FDA665B0@stcinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ah, then the "root" of your backup is already /usr/newdrv, and unless the
dump included a /usr/newdrv/usr/newdrv/Employment path then your restore
won't find anything. Chop /usr/newdrv from your restore cmd.

By the way, the interactive (-i) mode of restore is a handy way to find
things when dumps are fighting you. From there you can move around the
dump, list, select, and extract files.

Dave

On Sun, 13 Feb 2000, Gregory Carvalho wrote:

> I am certain it is the correct volume. Here are the two commands I issue
> prior to restore:
> 
> # mt -f /dev/nrsa0 rewind
> # mt -f /dev/nrsa0 fsf 3
> 
> If I issue
> # restore -tf /dev/nrsa0 > files.text
> then files.text contains the Employment directory and it's contents.
> 
> To create the tape, I use BackupThisSystem script:
> 
> #!/bin/sh
> for filesys in / /var /usr /usr/newdrv
> do
>    dump -0au -f /dev/nrsa0 $filesys
> done
> mt -f /dev/nrsa0 rewind
> mt -f /dev/nrsa0 offline
> 
> I hope this is what you are asking for regarding the file systems
> attached:
> /dev/da0s1a             /
> /dev/da0s1f             /usr
> /dev/da0s1e             /var 
> /dev/da1c               /usr/newdrv
> 
> Thanks,
> Greg
> 
> wellsian wrote:
> > 
> > Are you sure the files in question are on that part of the tape? I mean
> > not elsewhere in a multiple-dump backup that might require you to "mt
> > /dev/rsa0 fsf 2" first or something? What are the dump commands that
> > created the tape? (from when it was blank and fully rewound) What's the
> > mount command show for where your filesystems are attached?
> > 
> > Dave
> > 
> > On Sun, 13 Feb 2000, Gregory Carvalho wrote:
> > 
> > > I am unable to restore /usr/newdrv/Employment from a dump volume. I
> > > receive the following:
> > >
> > > # restore -xvf /dev/nrsa0 /usr/newdrv/Employment/
> > > Verify tape and initialize maps
> > > Tape block size is 10
> > > Dump   date: Sat Jan  1 16:16:17 2000
> > > Dumped from: the epoch
> > > Level 0 dump of /usr/newdrv on homer.stcinc.com:/dev/da1c
> > > Label: none
> > > Extract directories from tape
> > > Initialize symbol table.
> > > ./usr/newdrv/Employment is not on the tape
> > > Extract requested files
> > > You have not read any tapes yet.
> > > Unless you know which volume your file(s) are on you should start
> > > with the last volume and work towards the first.
> > > Specify next volume #: ^Crestore interrupted, continue? [yn] n
> > >
> > > I am using FreeBSD 3.2R. I have tried entering 0 through 4 for the
> > > volume, but to no avail. restore -t displays the Employment dir and it's
> > > files. I would appreciate someone explaining the proper restore command
> > > syntax since mine is obviously flawed.
> 



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




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