Newsgroups: comp.unix.shell
From: brumik <brum...@gmail.com>
Date: Sun, 4 Nov 2012 23:50:47 -0800 (PST)
Local: Mon, Nov 5 2012 2:50 am
Subject: Re: Appending files to a cpio archive with gzip
On Nov 5, 4:20 am, Barry Margolin <bar...@alum.mit.edu> wrote:
> In article <k76io1$v7...@news.xmission.com>,
I tried this but still cant get it to work, by example I want to
> gaze...@shell.xmission.com (Kenny McCormack) wrote: > > In article <barmar-18FAF5.15094004112...@news.eternal-september.org>,
> > Oopsie!
> > From "man gzip":
> > ADVANCED USAGE
> > gzip -c file1 > foo.gz
> > Then
> > gunzip -c foo
> > is equivalent to
> > cat file1 file2
> > Whether this works with tar and/or cpio (or any other archiving format) is,
> > >The fact that it contains a cpio archive is irrelevant -- this is just
> > Actually, as you now see, it does matter.
> Oops, sorry.
> So the question then is whether you can append one cpio archive onto
> ( find test | cpio -o; find test1 | cpio ) | gzip -c
> --
archive all files in dir1, but only directories in dir2 to the archive: # find . | sort
# ( find dir1 | cpio -ov; find dir2 -type d | cpio -ov ) | gzip -c > /
# gzip -dc /var/tmp/testarchive.cpio.gz | cpio -it
As we see only dir1 was archived, unfortunately despite many tries I
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||