Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site men1.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!umcp-cs!prometheus!men1!ron From: ron@men1.UUCP (Ron Flax) Newsgroups: net.unix-wizards Subject: Need help preserving permissions when using tar? Message-ID: <495@men1.UUCP> Date: Mon, 1-Jul-85 22:33:28 EDT Article-I.D.: men1.495 Posted: Mon Jul 1 22:33:28 1985 Date-Received: Wed, 3-Jul-85 20:09:03 EDT Distribution: net Organization: MTACCS Engineering Network, Arlington VA Lines: 20 Does anyone know of a way to preserve file and directory permissions and ownerships when using tar? When I archive the files I have umask set at 0, and say I tar a directory or two. When I go to restore these directories/files, the files seem to be in tact but the directories are of course 0777. If I use a umask of say 0022 then the directory is set at 0755 as is expected with that umask setting, but the files are then also masked accordingly. I guess what I want is to have my cake and eat it too? Is this possible? The reason this comes up is that I just spent the better part of today, tar'ing my old small disk to turn around and restore everything to a new larger disk, well I had to fix every G*d Damned directory by hand! -- Ron@men1 (Ron Flax) MTACCS Engineering Network ..!{seismo,prometheus,prcrs,cal-unix}!men1!ron