配置详解
了解所有可配置的参数和选项
备份源配置
创建备份源时可配置的参数。
| 字段 | 类型 | 说明 |
|---|---|---|
| path | string | 备份源路径 |
| name | string | 显示名称 |
| group | string | 分组标签 |
| enabled | bool | 是否启用 |
| schedule | string | 调度策略:manual/hourly/daily/weekly/monthly |
| retention | string | 保留策略:keep_all/smart/custom |
| excludes | []string | 排除模式列表(glob) |
| watch_mode | string | 监控模式:auto/poll/disabled |
| compression_type | string | 压缩算法:none/zstd/s2/deflate |
| compression_level | int | 压缩级别 |
| repo_paths | []string | 仓库路径列表 |
仓库配置
创建仓库时可配置的参数。
| 字段 | 类型 | 说明 |
|---|---|---|
| path | string | 仓库路径(本地) |
| display_name | string | 显示名称 |
| type | string | 类型:local/s3/webdav |
| encryption | string | 加密方式 |
| compression | string | 压缩算法 |
调度策略
可用的调度策略类型。
| 类型 | 说明 |
|---|---|
| manual | 手动触发,不自动执行 |
| hourly | 每小时执行一次 |
| daily | 每天在指定时间执行 |
| weekly | 每周在指定日期和时间执行 |
| monthly | 每月在指定日期和时间执行 |