Closed 3eggert closed 9 months ago
Looks good, but there some things that need to be done before this can be merged:
[0 | 1 | 3 | 5 | 7 | 9 ]
instead of 0-9 according to the 7-Zip documentation.compression_level
environment variable. cecho "Choose the compression level."
cecho "- 0 is no compression, and is the fastest."
cecho "- 3 is fast compression."
cecho "- 5 is normal compression, which is a balance between speed and file size."
cecho "- 7 is maximum compression, it was the previous default."
cecho "- 9 is the slowest, but provides the best compression."
cecho "A larger number means better compression at the expense of RAM usage and backup speed."
cecho "Press Enter to pick your preferred compression level."
I added the purposed changes.
Sweet, thanks!
I added a simple method to use different compression levels. I used level 0 (no compression) and it made only little difference in file size:
-rw-rw-r-- 1 eggert eggert 51G Feb 23 14:01 open-android-backup-02-23-2024-11-52-03.7z # default -rw-rw-r-- 1 eggert eggert 53G Feb 23 19:00 open-android-backup-02-23-2024-18-23-18.7z # level 0
but it is significantly faster. 7z is always used as before, it just uses the compression level.