lzip-bug
[Top][All Lists]
Advanced

[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 compress


From: wrotycz
Subject: Re: [Lzip-bug] Is lzip able to save file name or time stams of compressed file?
Date: Tue, 27 Jun 2017 23:52:11 +0200
User-agent: GWP-Draft

Ok, I get it now. Just checked how it works and you copy timestamps to the archive and restore it this way during decompression.


Dnia 26 czerwca 2017 23:51 Antonio Diaz Diaz <address@hidden> napisaƂ(a):

wrotycz wrote:
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
http://www.nongnu.org/lzip/manual/lzip_manual.html#Introduction


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
http://www.gnu.org/software/tar/manual/html_node/gzip.html


Best regards,
Antonio.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]