[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lzip-bug] Is lzip able to save file name or time stams of compresse
Antonio Diaz Diaz
Re: [Lzip-bug] Is lzip able to save file name or time stams of compressed file?
Tue, 27 Jun 2017 01:50:22 +0200
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:18.104.22.168) Gecko/20110420 SeaMonkey/2.0.14
IMHO as an archiver it should be able to "recreate original"
file with original name, time stamps and probably permissions
Lzip is a compressor, not an archiver. But on posix systems you should
not have any problem. Lzip restores the original name, the access and
modification dates, permissions, and, when possible, ownership of the
file just as "cp -p" does. See
Without built in mechanism I can see only one way - with tar:
$ tar c file.name | lzip - > file.name.tar.lz
which isn't the most elegant as I create "double" archive but that's
the only way I can see.
This is how it is done on systems where the above doesn't work; first
archive with tar, then compress with lzip. See