NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Prob using CPIO



Well yes '> tree.cpio' should be '> ../tree.cpio'

xuser%sdf.org@localhost
SDF Public Access UNIX System - http://sdf.org

On Mon, 1 Jan 2024, Michael van Elst wrote:

tgruhn2%gmail.com@localhost (Todd Gruhn) writes:

I zip up much  music:

  find . -depth -print | cpio -ov > file.cpio

To unzip it , I must undo *cpio severa times severa times:

  cpio -iv < file.cpio

Your 'zip' packs the local directory including the cpio file that
is being created. You don't have to cpio several times to unpack,
but the data (most likely) exists twice in the archive.


Am I messing this up somehow? The *.cpio file is about 250MB...

Yes, don't include the resulting cpio file, easiest by writing
it to a separate directory.




Home | Main Index | Thread Index | Old Index