[Top][All Lists]

[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

From: Antonio Diaz Diaz
Subject: Re: [Lzip-bug] Is lzip able to save file name or time stams of compressed file?
Date: Tue, 27 Jun 2017 01:50:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv: Gecko/20110420 SeaMonkey/2.0.14

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

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

Best regards,

reply via email to

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