Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cwjcc!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!bzs From: bzs@Encore.COM (Barry Shein) Newsgroups: comp.unix.wizards Subject: Re: GNU-tar vs dump(1) Message-ID: <4601@xenna.Encore.COM> Date: 6 Jan 89 22:34:13 GMT References: <18008@adm.BRL.MIL> Organization: Encore Computer Corp, Marlboro, MA Lines: 29 In-reply-to: Rudy.Nedved@rudy.fac.cs.cmu.edu's message of 3 Jan 89 20:59:37 GMT Posting-Front-End: GNU Emacs 18.41.15 of Tue Jun 9 1987 on xenna (berkeley-unix) Another limitation of using tar (which, again, I don't know if gnutar attacked) is restoring device entries. This isn't always a problem since you usually got a working /dev/ from somewhere to start the restore but if there are other device entries which are normally dumped/restored this could be a consideration. It can be handled with a simple shell script to dump and restore these (you could create it and put it to tape automatically), basically a big find and then an awk postprocessor program to turn this into a shell script to do the necessary mknod's if needed later, then save that to tape, 99% of it is: find /filesys \( -type c -o -type b \) -exec ls -l '{}' ';' | \ awk -f todev > outfile ; chmod u+x outfile where todev is: BEGIN { print "#!/bin/sh" } { print "mknod " substr($1,0,1) " " substr($4,0,length($4)-1) \ " " $5 " " $9 } (ok, that was gratuitous fun...but it was clean fun.) -Barry Shein, ||Encore||