poniedziałek, 26 września 2011

tar.7z to store permissions

As we can conclude from some internet avaliable bemchmarks (eg here) or from my internal tests, 7z compressor wins among others, in compresion ratio as well as (de)compression time. One of the drawbacks of 7z is the fact it doesn't store linux permisions.
So the simplest solution for this problem is to:
  • use tar to create an umcompressed archive (with proper permissions etc archived), then
  • use 7z to compress tar file
So, to do that, just enter following commands:
tar -cf out.tar /path/to/archive
7z a out.tar.7z out.tar

Brak komentarzy:

Prześlij komentarz