7zr(1) | General Commands Manual | 7zr(1) |
7zr - A file archiver with high compression ratio format
7zr <command> [<switches>... ] <archive_name> [<file_names>... ] [<@listfiles>... ]
7-Zip is a file archiver supporting 7z (that implements LZMA compression algorithm featuring very high compression ratio), LZMA2, XZ, ZIP, Zip64, CAB, RAR (if the non-free p7zip-rar package is installed), ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most filesystem images and DEB formats. Compression ratio in the new 7z format is 30-50% better than ratio in ZIP format.
7zr is a stand-alone executable. 7zr is a "light-version" of 7za(1). 7zr handles password-less archives in the 7z, LZMA2, and XZ formats only.
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 | 7zr a -si directory.tar.7z
- to restore your backup : 7zr 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 : 7zr 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")
/usr/share/doc/p7zip/DOC/MANUAL/start.htm (avabilable when the p7zip-full package is installed)
March 6th, 2016 | 7-Zip |