Skip to content

v1.1 New 7-zip compressing method

Latest

Choose a tag to compare

@WindsorMacmillan WindsorMacmillan released this 30 Jun 04:37

IMPORTANT

This version replaced 7-zip Java library with a built-in 7z command-line tool, resulting in remarkable improvements in compression performance.
The plugin now automatically skips database and locked files when collecting files. This is a limitation of the 7z console; otherwise, the backup archive would fail to create immediately.
There are no changes to the configuration files in this update.

⚠PLEASE NOTE THAT this release includes a built-in 7z command-line executable to bypass the poor compression performance of Java 7zip library.

Blindly using executables from unknown sources may cause potential security risks!

If you cannot trust the executable pakaged with this plugin, please visit https://www.7-zip.org/download.html and download 7-Zip standalone console executable for your operating system.
Just rename and put the 7z executable in the plugins/SevenZipBackup/7zr folder of your own.
The executable filename for the Windows version is 7zr.exe, and for the Linux version, it is 7zr.
image

Tested on Folia 1.21.11, this new version of 7z compression methods offers at least a 10X performance improvement over the previous version. The time consumed to run a whole backup has plummeted from 500s to 30s.
Since the 7z console runs in a separate process from Minecraft server, compression levels will not impact server performance any more. Plugin can fully utilize the system's CPU performance.

重要事项

这个版本将压缩文件创建的实现从Java 7zip压缩库替换为了内置7z命令行工具,带来了惊人的压缩性能改善。
插件现在收集文件时会自动跳过数据库和被锁定的文件——这是7z命令行的限制,否则备份压缩文件会直接创建失败。
本次更新没有配置文件的变化。

⚠特别注意:此版本包含了一个7z命令行可执行文件,以此绕过Java 7z库低下的压缩性能。

盲目地使用未知来源的可执行文件可能造成潜在安全风险!

如果你无法信任此插件打包的7z可执行文件,请访问 https://www.7-zip.org/download.html 并且下载你的操作系统对应版本的7z命令行可执行文件。
只需重命名并将其放进你的 plugins/SevenZipBackup/7zr 文件夹。
Windows系统下的可执行文件名为 7zr.exe,而Linux系统下则是 7zr

通过在Folia 1.21.11服务器上的测试,这个新版本的7z压缩方法对比旧版本实现了至少10倍的性能飞跃。 完成一次备份所用的时间从500秒暴降到30秒。
由于7z命令行运行在Minecraft服务器以外的独立进程上,压缩级别不再会影响服务器性能。插件可以充分调度系统CPU的全部性能。