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
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list