Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!sarah!cs.albany.edu!hammond From: hammond@cs.albany.edu (William F Hammond) Newsgroups: comp.sys.amiga.datacomm Subject: Re: How is the directory preserved when I am using the zoo archive Summary: Use "tree" or "ls" Message-ID: <291@karp.albany.edu> Date: 18 Jan 91 17:33:43 GMT References: <1859@winnie.fit.edu> Reply-To: hammond@cs.albany.edu (William F Hammond) Organization: Dept of Math & Stat, SUNYA, Albany, NY Lines: 39 In article <1859@winnie.fit.edu> rcs91900@zach.fit.edu (Charles Stockman /ADVISOR-Clutterham) writes: > ... >I have this directory called X and want to archive it: > ... > X/a > X/b > X/C/a > >How would I go about archiving directory X so that file will be in >directory C when I unarchive it > ... Tomas Rokicki, the author of AmigaTeX, wrote a very nice little utility called "Tree", which can be found on Fish Disk 306. "Tree" simply lists the pathnames, relative to the current directory, of all files in the directory tree below the current directory. So if "X" is set up the way you want it to be, make "X" the current directory and then enter the commands tree > T:x-treelist zoo < T:x-treelist aI not-in-x:xarchive.zoo To reconstruct the the directory from the zoo archive, set your current directory to an empty directory "Y" somewhere and enter the command zoo x// not-in-x:xarchive.zoo "Tree" can also be used this way with the archiver "lharc" and the CRC-based file integrity checker "brik". There is also a utility called "ls" that can be used instead of "tree" for this purpose. ---------------------------------------------------------------------- William F. Hammond Dept. of Mathematics & Statistics 518-442-4625 SUNYA, Albany, NY 12222 hammond@leah.albany.edu wfh58@albnyvms.bitnet ----------------------------------------------------------------------