Comments (2)
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.
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)
- configure: error: AsciiDoc not found, not able to generate the man page. HOT 3
- Error decoding stream footer when trying to decompress a 3.1 TiB .tpxz file HOT 8
- cppcheck 2.8 warnings about uninitialized variables
- Crash when using -x option
- What is the default level of compression? HOT 2
- Can't compile on Fedora 38 HOT 2
- msys2 build failure HOT 18
- Indexes HOT 2
- Clarify README section on differences with xz HOT 5
- any plans for another release soon? HOT 1
- Server mode HOT 1
- -k should be the default HOT 2
- concatenation of *xz files and then decompression using pixz HOT 2
- Building On Windows HOT 2
- manpage not installed if building from release tarball HOT 2
- build env question not package liblzma HOT 1
- Questions about tpxz / file index format HOT 6
- Error creating block encoder HOT 3
- Syntax for converting existing tar.xz archive to indexed pixz file? HOT 1
- Random failures when compressing large directories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixz.