From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3c8ffadb41de6f82 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,3c8ffadb41de6f82 X-Google-Attributes: gidf678f,public From: Nikola Milutinovic Subject: Re: tar -C command on DEC Unix 4.0 Date: 1998/06/26 Message-ID: <3593B961.41D6E142@EUnet.yu>#1/1 X-Deja-AN: 366322007 Content-Transfer-Encoding: 7bit References: <6mvasc$ldg$1@nnrp1.dejanews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Me organized? Not here! Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 chl_william@hotmail.com wrote: > > Hi, > > I wonder if someone can help me to restore my archive file created by > the following tar command on DEC Unix 4.0b > > tar cpvf /dev/rmt1h -C /u01/data . - /u02/data . > > When I use tar command to restore the files, ALL the files were restored > under my current directory which resulted in a disk full situation i.e. > ALL the directory structure information were gone. With this you actually have no absolute path info. And unless tar stores the information that it changed its CWD (-C option), in the archive, on that very spot, you're stuck. Try listing the archive with "tar t", see if there is a mark (I doubt it). Try manually creating file list of the first "save set" and extracting just those files. What can I say, nice mess. Like you did "cp -r /u02/data/* /u01/data ; tar /u01/data" Good luck. Nix.