Skip to content

Instantly share code, notes, and snippets.

@tralston
Last active April 24, 2018 20:49
Show Gist options
  • Save tralston/059b4c7e1d9c868e74ea97e65c3abe09 to your computer and use it in GitHub Desktop.
Save tralston/059b4c7e1d9c868e74ea97e65c3abe09 to your computer and use it in GitHub Desktop.
[7zip CLI] Ultra high compression for 7zip on commandline #bash
# 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