Return to BSD News archive
Xref: sserve comp.os.386bsd.questions:451 comp.unix.questions:31801 Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!wupost!cs.utexas.edu!geraldo.cc.utexas.edu!geraldo.cc.utexas.edu!usenet From: vax@ccwf.cc.utexas.edu (Vax) Newsgroups: comp.os.386bsd.questions,comp.unix.questions Subject: Restoring with gnutar (HELP) Date: 3 Mar 1993 11:03:01 GMT Organization: The University of Texas at Austin, Austin TX Lines: 29 Message-ID: <1n2395INN121@geraldo.cc.utexas.edu> NNTP-Posting-Host: sylvester.cc.utexas.edu I have my entire filesystem tar'd onto tape. After re-installing the original distributions (src,bin,etc or parts thereof) I have a partial filesystem. I restore from tape, and it refuses to mknod special files that already exist, but most importantly, it does not set the proper uid/gids for the files that already exist! Now, I thought +same-permissions was a default option when running with GID 0. Am I wrong, or does +same-permissions NOT restore these files properly? NB: I did NOT use +keep-old-files or anything like that. I want a fascist restore. Needless to say, I am unhappy that almost EVERYTHING in /usr/bin is owned by root/wheel. WHY in the world does the normal install procedure leave you with your bin files owned by root? And /tmp mode 755? And the kmem goup is not used properly, even though it is in /etc/group. Please tell me a command line to restore this. I have no time to experiment, restores take 2+ hours and keep me awake (the tape drive is very noisy). ALSO: I tried to restore this tape on a friends computer (he has a smaller hard drive). I decided not to restore /usr/src (bad move). Later, after much struggling, I tried to not restore /usr/src/sys.386bsd, /usr/src/public, /usr/src/games... But I could not get tar to 'exclude' these directory subtrees! Eventually I did a complete list of the filesysstem and deleted lines that contained these patterns, then did a files-from option. Is there a better way? Should I use cpio/ or dump? I used tar because I was familiar with it (or so I thought). -- Protect our endangered bandwidth - reply by email. NO BIG SIGS! VaX#n8 vax@ccwf.cc.utexas.edu - finger for more info if you even care.