dump(8) verification ?

acheng at uiucdcs.CS.UIUC.EDU acheng at uiucdcs.CS.UIUC.EDU
Wed Oct 9 13:54:00 AEST 1985


>/* Written  1:06 am  Oct  7, 1985 by richl at lumiere.UUCP in uiucdcs:net.unix-wizar */
>A relatively reliable way to check even a multi-volume tape is to do a
>dumpdir (or restore -t, depending on your flavor) and, using awk or
>sort or something, obtain the highest number inode that was dumped.
>Then restore that file, doing it the *dumb* way (starting with tape 1,
>through tape n). This will force restore to read each and every tape
>and finally restore the last file on the last tape. 

If an empty directory happens to be of the highest inode, you are out
of luck.  Directories are dumped at the very beginning.  So, your
"restore" will read only a bit of vol. 1 and finish.  You may want
to search backwards (from the highest inode down) for a file
not ending with a "/.".  We use the above approach before but
use "dd" since it is much faster and doesnot make much difference.

----------------------------------------------------------------------
Albert Cheng
acheng at UIUC.ARPA	acheng at UIUC.CSNET	{ihnp4,pur-ee}!uiucdcs!acheng
Dept. of Computer Science, Univ. of Illinois-Urbana,
Rm. 240, 1304 W. Springfield, Urbana, IL 61801

%%% The above is the opinion of my own %%%
%%% and not necessarily that of the management. %%%



More information about the Comp.unix.wizards mailing list