Last active
April 24, 2018 20:49
-
-
Save tralston/059b4c7e1d9c868e74ea97e65c3abe09 to your computer and use it in GitHub Desktop.
[7zip CLI] Ultra high compression for 7zip on commandline #bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will compress the entire pwd, dot files included. Archive placed in pwd | |
sudo 7z a -t7z [FILENAME.7z] -m0=lzma2 -mx=9 -aoa . | |
# No compression, just copy. Also, splits into 900MB parts for easier transfer over internet | |
7z a -t7z -mx=0 -v900m [FILENAME.7z] [files...] | |
# Same as previous, but encrypt headers (file names, and password protected | |
7z a -t7z -mx=0 -mhe=on -p -v900m [FILENAME.7z] [files...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment