1. Squeeze a folder¶
The simplest command there is: an archive name and what to put in it.
% squeeze backup Documents
squeeze: balanced chose a 7z archive with LZMA2 at level 1: creating backup.7z
squeeze: backup.7z was created: 107 files, 147.9 MB squeezed to 110.8 MB, saving 25%.- No options needed. squeeze goes into folders by itself; there's no
-rto remember. - No
-Zneeded. Without it, squeeze uses balanced, which your settings say means a 7z with LZMA2 at level 1: small, and quick to make and to open. See 7. Choose fastest or smallest. - The name gets its ending.
backupbecomesbackup.7z.
Choosing the format by its name¶
Give the archive's name an ending, and that decides the format:
% squeeze site.zip Website
adding: Website/ (stored 0%)
adding: Website/index.html (deflated 61%)
adding: Website/styles.css (deflated 95%)
adding: Website/images/ (stored 0%)
adding: Website/images/cafe.jpg (stored 0%)
% squeeze notes.aar Documents/Notes
squeeze: creating an Apple Archive with LZFSE: notes.aar
squeeze: notes.aar was created: 60 files, 22.4 MB squeezed to 8.8 MB, saving 61%.| Name ends | squeeze makes |
|---|---|
.7z |
A 7z |
.aar |
An Apple Archive |
.zip |
A zip, made by Apple's own zip, exactly as zip would |
| anything else, or nothing | What balanced (or the -Z you give) chooses |
Photos, videos and other files that are already compressed hardly get smaller in any format. squeeze stores them as they are rather than squeeze them again, which keeps it quick, and tells you when an archive came out larger than the files themselves.