Interestingly, since "recovery" is mentioned several times, I decided to test myself. I took a copy of a jpeg image, compressed it different times with either gzip or bzip2, then with a hexeditor modified one byte. The recovery instructions for gzip is to simply do "zcat corrupt_file.gz > corrupt_file". While for bzip2 is to use the bzip2recover command which just dumps the blocks out individually (corrupt ones and a…
Your method is clearly flawed. Altering a single byte once is insufficient as a test unless you analyzed the structure of the compressed file first to see where the really important information is stored. It may well be that you just modified a verbatim string from the source data in the gzip case, but corrupted a bit of metadata about how the compressed data is structured in the bzip2 case. If you tried a different…
Xz format inadequate for long-term archiving (2016)
21–30 of 60 posts
Re: Xz format inadequate for long-term archiving (2016)
#22This guy used to go around GNU mailing lists (and others) trying to get us to use lzip. https://gcc.gnu.org/ml/gcc/2017-06/msg00044.html https://lists.debian.org/debian-devel/2017/06/msg00433.html It was a bit bizarre when he hit the Octave mailing list. Eventually, people just wanted xz back: http://octave.1599824.n4.nabble.com/opinion-bring-back-Octav...
Re: Xz format inadequate for long-term archiving (2016)
#23Not that many of the complaints aren't reasonable, but I thought that in general compression/format was orthogonal to parity, which is what I assume is actually wanted for long-term archiving? I always figured that the goal should normally to be able to get back out a bit-perfect copy of whatever went in, using something like Parchive at the file level or ZFS for online storage at the fs level. I guess on the princip…
Re: Xz format inadequate for long-term archiving (2016)
#24Earlier quoted context omitted.
Why are you assuming they aren't assuming redundant storage? Redundant storage isn't a cure-all, there's still a chance two blocks on two disks will fail in the exact same spot.
Seems easier to increase the amount of disks and address it at a low layer than to re-engineer all layers, all file formats, for corruption.
Re: Xz format inadequate for long-term archiving (2016)
#25Earlier quoted context omitted.
Seems easier to increase the amount of disks and address it at a low layer than to re-engineer all layers, all file formats, for corruption.
If there are safer free formats, why not use them? It's not like all data everywhere is always going to be stored on zfs.
Re: Xz format inadequate for long-term archiving (2016)
#26Earlier quoted context omitted.
and "from the author of lzip, a competing lzma library that never went viral". Welcome to the Better Technology that Shoulda Made It bench. Your seat's over there next to OS/2, BeOS, and OpenGenera.
Amiga forever!!!!!!
Re: Xz format inadequate for long-term archiving (2016)
#27> "3 Then, why some free software projects use xz?" Because the files are usually smaller than gzip, with faster decompression than bzip2, and the library is available on most systems.
I wouldn't use any unreliable format for backups. I picked bzip2 for stability and compression rate.
Re: Xz format inadequate for long-term archiving (2016)
#28> "3 Then, why some free software projects use xz?" Because the files are usually smaller than gzip, with faster decompression than bzip2, and the library is available on most systems.
Archiving for distribution and backups are very different things. You don't care if some app distribution compressed file gets corrupted, you just compress again but your compressed backup files usually don't have much source of reference. I wouldn't use any unreliable format for backups. I picked bzip2 for stability and compression rate.
Honestly, I don't see why xz should have any of its own data integrity mechanisms whatsoever, except maybe a whole-archive CRC32 or similar.
Re: Xz format inadequate for long-term archiving (2016)
#29Not that many of the complaints aren't reasonable, but I thought that in general compression/format was orthogonal to parity, which is what I assume is actually wanted for long-term archiving? I always figured that the goal should normally to be able to get back out a bit-perfect copy of whatever went in, using something like Parchive at the file level or ZFS for online storage at the fs level. I guess on the princip…
I think with archiving it’s more than that. Sure you can guarantee that the actual tool you just compressed with can restore the original perfectly. But with long term digital archiving I think you need the assurance that the “spec” called “xz” could be perfectly reimplemented by an expert in the future. Based solely on documentation. And on a platform that doesn’t exist today. That is, you must assume the original e…
Again this is shooting the breeze a bit, article is discussing a case where there should be the freedom to choose better formats. But for a lot of important archive material, including software itself, are we getting to the point where many long term archives should simply including everything necessary to deal with them in the present day as a container or VM image, which is then stored with a solid amount of parity and replication?
Re: Xz format inadequate for long-term archiving (2016)
#30If you first use tar to preserve xattrs/etc.. then you can use anything to compress. xz, bz2, 7z, even arj if you are feeling nostalgic. tar cvfJ ./files.tar.xz /some/dir
You've missed the point of the article entirely. A single bit-flip (which is almost guaranteed over long-term ) can easily render the entire xz file corrupt. This has nothing to do with xattrs/etc.
That said, I use xz in automation that compresses files on one end and decompresses on the other. I've not had any file corruption thus far. checksums always match. Hopefully the author has submitted bug reports and ways to reproduce.