Xref: utzoo comp.sources.d:2251 comp.unix.questions:7465 Path: utzoo!dciem!nrcaer!scs!spl1!lll-winken!lll-tis!ames!killer!richardh From: richardh@killer.UUCP (Richard Hargrove) Newsgroups: comp.sources.d,comp.unix.questions Subject: Re: cpio/afio writing directories? Message-ID: <4338@killer.UUCP> Date: 4 Jun 88 02:47:37 GMT Article-I.D.: killer.4338 References: <23@libove.UUCP> Distribution: comp Organization: The Unix(R) Connection, Dallas, Texas Lines: 24 Summary: try find(1) In article <23@libove.UUCP>, root@libove.UUCP (The Super User) writes: > My question: How do I tell afio/cpio that > > % echo '/x /y /z' | afio -o > > means /x /y /z and all subfiles also? The simplest way is one of either find /x /y /z -print | cpio -o... or find /x /y /z -type f -print | cpio -o... depending on whether you want directory information stored or not (it will be important if you're restoring under a different uid). The version of find(1) on uPort SYS V/AT has a -cpio option that invokes cpio for you. I've seen references to versions supporting a -prune option which is used to control the depth of the descent of the tree walk. richard hargrove ...!{ihnp4 | codas | cbosgd}!killer!richardh --------------------------------------------