Coder Social home page Coder Social logo

Comments (2)

philip-wernersbach avatar philip-wernersbach commented on July 20, 2024

I'd also like to add that I am willing to code this particular feature, but I don't understand pixz's file format enough to point pixz to the second to last file in this case.

from pixz.

vasi avatar vasi commented on July 20, 2024

Pixz uses the exact same file format as xz: http://tukaani.org/xz/xz-file-format.txt . The only difference is that xz usually creates single-block streams in its output files, while pixz creates multi-block streams.

Unfortunately the xz format stores a lot of important data at the end ("footer") of the file, so the file on-disk will never be a 100% valid xz file until the compression has finished. Also, pixz is a stream-based compressor—it doesn't compress one file at a time, it just compressed blocks of data. So if you do have a truncated xz file from pixz, it won't end after a file, but somewhere in the middle of a file.

That said, there should be enough information in the xz files produced by pixz to at least extract the data inside. Have you tried forcing pixz into streaming decompression mode? cat myfile.tar.pxz | pixz -d > myfile.tar That might produce something useful. You could also try using plain old xz to do your decompression, it might be more robust.

Or do you want to do more than just extract the data? If you want to continue from an interrupted compression, or to repair the result of an interrupted compression, that will be harder. I guess you could probably code up some sort of checkpointing feature, at the cost of slightly decreased performance.

from pixz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.