Path: utzoo!mnetor!uunet!vsi!friedl From: friedl@vsi.UUCP (Stephen J. Friedl) Newsgroups: comp.unix.questions Subject: Re: How can I read a cpio archive with absolute pathnames? Message-ID: <434@vsi.UUCP> Date: 23 Mar 88 08:59:52 GMT References: <407@vsi.UUCP> <4019@cup.portal.com> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 30 Summary: chroot is a bummer In article <4019@cup.portal.com>, itkin@cup.portal.com writes: > In article <407@vsi.UUCP>, I lament: > > Customers are always dumping cpio archives to floppy with > > > > find / -print | cpio ... > > > >and it drives us crazy when we need to restore something and they > >have used full pathnames. [...] > > This is one of those rare uses for the CHROOT command. The steps are: > > chroot /sparedir cpio... /etc/chroot is sadly not as simple as it looks: you have to create a whole directory tree under /sparedir: it has to contain: /sparedir/bin/cpio /sparedir/dev/tty if you run multiple volumes /sparedir/dev/rmt0 or whatever, if you run multiple volumes /sparedir/bin/mkdir /sparedir/shlib/libc_s for SVR3 at least. This is tedious and I really hate to bother setting it up all the time. Sigh, I wish cpio had an option... Steve -- Steve Friedl V-Systems, Inc. *Hi Mom* friedl@vsi.com {uunet,attmail,ihnp4}!vsi!friedl