On Mon, 12 Feb 2001, Charles Galpin wrote:

>
>
> On Sun, 11 Feb 2001, Mikkel L. Ellertson wrote:
>
> > On Mon, 12 Feb 2001, gary wrote:
> > > I also do tried as below to backup...
> > >
> > > tar cvbf 20 /dev/nst0 ./home
> > > tar cvbf 20 /dev/nst0 ./var
> > > tar cvbf 20 /dev/st0 ./etc
> > >
> > > but also get the same thing?
> > >
> > > anyone know about this, please help to advise...
> > >
> > The tar command to /dev/st0 should rewind to the beginning of the tape.
> > Are you shure the restore showed ./etc, and not ./home?  You also have
> > to use /dev/nst0 when doing the restore.
>
> unless the last tar line is a typo, then yes he used the non-rewinding
> device and wrote the /etc/ archive over the other two.
>
> You need to use /dev/nst0 consistantly (including during the
> restore). Try this
>
> tar cvbf 20 /dev/nst0 ./home
> tar cvbf 20 /dev/nst0 ./var
> tar cvbf 20 /dev/nst0 ./etc
>
> mt -f /dev/st0 rewind
> tar tf /dev/nst0
>
> mt -f /dev/st0 fsf 1
> tar tf /dev/nst0
>
> mt -f /dev/st0 fsf 1
> tar tf /dev/nst0
>
>
> and you should see all your archives. man mt for lots of info on how to
> move around the archives.
>
> hth
> charles
>
I alway thought that using /dev/st0 only did a rewind after you closed
the connection, not when you opened it.  I am going to have to play with
this and double check, if it does a rewind when you open the connection,
then the docs are wrong, or there is a bug in the st code.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to