Reputation: 7165
How can I convert this settings into command?
Here are the results:
// Manual Compression (see the image above)
Compressed Size: 12,647,451 bytes
// Ultra
7z a -t7z Files.7z -mx9 -aoa
Compressed Size: 12,676,886 bytes
// LZMA2
7z a -t7z Files.7z -m9=LZMA2 -aoa
Compressed Size: 14,237,515 bytes
I am looking here:
https://7-zip.opensource.jp/chm/cmdline/switches/method.htm
I am about to put this in a batch file.
Upvotes: 50
Views: 73296
Reputation: 61
I think you are looking for a tool like this:
https://axelstudios.github.io/7z/#!/
In this online tool, you set your settings and then you get correspondent command line options and parameters.
Upvotes: 5
Reputation: 525
This command is creating for me the same output like the ultra configuration with the ui. I have found it in the documentation under examples. 560MB to 29MB (binary data with a lot duplicate files)
7za.exe a output.7z ./input -mx
Upvotes: 3
Reputation: 91
For those who are on unix system, this is how I achieved this.
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=1024m -ms=on destination.7z Source
My source: http://manpages.ubuntu.com/manpages/artful/man1/7z.1.html
Upvotes: 9
Reputation: 1417
Your command line should be at least:
7z a -t7z Files.7z -m0=lzma2 -mx=9 -aoa
Note that you'll get better compression when using 1 or 2 threads, not 8.
So, even closer to your GUI settings (ms
: solid, d
: dictionary size, mhe
: encrypt header (file names), p
: password)
7z a -t7z -m0=lzma2 -mx=9 -aoa -mfb=64 -md=32m -ms=on -d=1024m -mhe -pSECRET
Upvotes: 74
Reputation: 7165
It's hard to get the same result, but this is the best I can get so far:
7z a -t7z Files.7z -m0=BCJ2 -m1=LZMA2:d=1024m -aoa
Upvotes: 12