ChaoticTrials / SimpleBackups

A simple mod to create scheduled backups
https://modrinth.com/mod/simple-backups
Apache License 2.0
10 stars 6 forks source link

Add compression level to the configuration #11

Closed tannertechnology closed 1 year ago

tannertechnology commented 1 year ago

Describe your idea

I suggest that the setLevel method be exposed in the configuration. Backups on my server are taking 2 minutes but not much disk space, I'd like to trade some cpu time for some disk space by reducing the compression level.

https://docs.oracle.com/javase/9/docs/api/java/util/zip/ZipOutputStream.html#setLevel-int-

It's been some time since I dove into Java so I'm hesitant to get started on it myself.

tannertechnology commented 1 year ago

That was fast! Thanks :)