On Mon, 12 Feb 2001, Charles Galpin wrote:
>
> 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/nst0 fsf 1
> tar tf /dev/nst0
>
> mt -f /dev/nst0 fsf 1
> tar tf /dev/nst0
>
I did some playing around myself, and found an even easyer way to do it:

tar cvf /dev/nst0 ./home
tar cvf /dev/nst0 ./var
tar cvf /dev/st0 ./etc

and to restore

tar xvif /dev/nst0 ./home
tar xvif /dev/nst0 ./var
tar xvif /dev/st0 ./etc

Using /dev/st0 instead of /dev/nst0 for the last archive saves having to
use mt to rewind the tape.  You do not need the b 20 option, because
that is the default block size. The i option on restore ignors the extra
EOF, and any fillers at the end of the archive to finish off the block.
As always, there is more then one way to do the same thing in Linux...

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