1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

Implement global.rsync_options (fixes #206)

Signed-off-by: Harry Chen <i@harrychen.xyz>
这个提交包含在:
Harry Chen
2025-02-27 16:59:29 +08:00
父节点 27e4307375
当前提交 a64557b86d
共有 4 个文件被更改,包括 73 次插入1 次删除

查看文件

@@ -58,6 +58,9 @@ type globalConfig struct {
Retry int `toml:"retry"`
Timeout int `toml:"timeout"`
// appended to the options generated by rsync_provider, but before mirror-specific options
RsyncOptions []string `toml:"rsync_options"`
ExecOnSuccess []string `toml:"exec_on_success"`
ExecOnFailure []string `toml:"exec_on_failure"`
}
@@ -162,7 +165,7 @@ type mirrorConfig struct {
ExecOnSuccess []string `toml:"exec_on_success"`
ExecOnFailure []string `toml:"exec_on_failure"`
// These two options the global options
// These two options are appended to the global options
ExecOnSuccessExtra []string `toml:"exec_on_success_extra"`
ExecOnFailureExtra []string `toml:"exec_on_failure_extra"`