7z(1) | User Commands | 7z(1) |
7z - A file archiver with highest compression ratio
7z [adeltux] [-] [SWITCH] <ARCHIVE_NAME> <ARGUMENTS>...
7-Zip is a file archiver with the highest compression ratio. The program supports 7z (that implements LZMA compression algorithm), ZIP, CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats. Compression ratio in the new 7z format is 30-50% better than ratio in ZIP format.
7-Zip returns the following exit codes:
DO NOT USE the 7-zip format for backup purpose on Linux/Unix
because :
- 7-zip does not store the owner/group of the file.
On Linux/Unix, in order to backup directories you must use tar :
- to backup a directory : tar cf - directory | 7za a -si directory.tar.7z
- to restore your backup : 7za x -so directory.tar.7z | tar xf -
If you want to send files and directories (not the owner of file) to others Unix/MacOS/Windows users, you can use the 7-zip format.
example : 7za a directory.7z directory
Do not use "-r" because this flag does not do what you think.
Do not use directory/* because of ".*" files (example : "directory/*" does not match "directory/.profile")
7za(1), 7zr(1), bzip2(1), gzip(1), zip(1)
/usr/share/doc/p7zip/DOC/MANUAL/index.htm
September 1 2006 | Mohammed Adnene Trojette |