well404.AutoSave
1.0.0
dotnet add package well404.AutoSave --version 1.0.0
NuGet\Install-Package well404.AutoSave -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="well404.AutoSave" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="well404.AutoSave" Version="1.0.0" />
<PackageReference Include="well404.AutoSave" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add well404.AutoSave --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: well404.AutoSave, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package well404.AutoSave@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=well404.AutoSave&version=1.0.0
#tool nuget:?package=well404.AutoSave&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
well404.AutoSave
定时保存游戏并周期性高压缩备份存档。无游戏内指令——只通过
config.yaml与 (可选的)well404.WebPanel管理面板配置。
well404.AutoSave 是 well404 OpenMod 插件家族 的一员。
功能
- 定时保存:按 cron 表达式触发
SaveManager.save(),默认每 10 分钟一次。按墙钟对齐 (像 crontab 一样在:00/:10/:20…触发),不随服务器启动计时。 - 周期备份:每保存 N 次(默认 6)在该次保存后顺带做一次备份。保存计数持久化,重启后延续。
- 高压缩:备份为 LZMA 实体压缩的
.tar.lz(跨文件整体压缩,体积最小;可用 7-Zip / lzip 解开)。 - 自定义备份目录:默认
<安装目录>/Backups/<服务器id>(在存档目录之外,避免备份套备份)。 - 智能排除:默认只备份「真正的存档」,排除创意工坊下载、OpenMod 包缓存、日志、临时文件等 可下载/可再生内容(规则可改)。
- 保留策略:最大备份数 + 最大总体积,任一超限即删最旧;默认均不限制,且永远保留最新一份。
- Web 面板集成(可选):装了
well404.WebPanel时,可在面板里编辑全部配置、查看/删除备份、 「立即备份」。中英双语。
安装
openmod install well404.AutoSave
重启服务器或执行 openmod reload 后生效。openmod install 会自动一并安装其依赖
(Cronos、SharpCompress)。
命令
本插件不提供任何游戏内指令。所有设置都在 config.yaml,或装了
well404.WebPanel 时在管理面板里完成。
配置 (config.yaml)
schedule:
cron: "*/10 * * * *" # 标准 5 段 cron;默认每 10 分钟(按墙钟对齐)
timeZone: "" # 空=服务器本地时区;否则 IANA/Windows 时区 id
backup:
enabled: true
everyNSaves: 6 # 每 N 次保存后备份一次;<=0 关闭备份
directory: "" # 空=<安装目录>/Backups/<服务器id>
excludePatterns: # 相对存档根的排除 glob(* 不跨目录、** 跨目录、大小写不敏感)
- "Workshop/**"
- "Steam/**"
- "Bundles/**"
- "OpenMod/packages/**"
- "**/logs/**"
- "**/Logs/**"
- "**/*~"
- "**/*.bak"
retention:
maxCount: 0 # 最大备份数,0=不限
maxTotalSizeMB: 0 # 最大总体积(MB),0=不限
- 备份内容:默认备份整个
Servers/<id>/,减去上面的排除项。保留世界(Level/)、玩家 (Players/)、管理列表(Server/)、服务器配置(Config.txt)、OpenMod 角色/用户/各插件配置与数据。 - WebUI 可编:以上每一项在装了 WebPanel 时都能在「Auto Save」面板里改;面板还能列出/删除备份、立即备份。
well404 OpenMod 插件家族
| 插件 | 说明 |
|---|---|
| well404.Economy | 货币经济核心,全局 IEconomyProvider 供币 |
| well404.Shop | 物品商店,买卖物品 / 组合包,依赖 Economy |
| well404.Essentials | 面向玩家的 home/tp/warp/gift/sleep/back/party 实用合集 |
| well404.AdminTools | 无敌、踢出、临时封禁/解封 |
| well404.Vault | 玩家私人仓库,完整保真存取背包物品 |
| well404.AutoSave | 定时保存 + 高压缩备份存档(本插件) |
| well404.WebPanel | 通用 Web 管理面板,供各插件挂载可视化管理模块 |
许可
CC BY-NC-SA 4.0 © well404
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Cronos (>= 0.8.4)
- OpenMod.Extensions.Economy.Abstractions (>= 3.8.10)
- OpenMod.Unturned (>= 3.8.10)
- SharpCompress (>= 0.30.1)
- System.Text.Encoding.CodePages (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 106 | 6/15/2026 |