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

switch to toml

这个提交包含在:
bigeagle
2014-10-24 00:21:38 +08:00
父节点 091f151956
当前提交 d595af6755
共有 3 个文件被更改,包括 68 次插入90 次删除

39
examples/tunasync.conf 普通文件
查看文件

@@ -0,0 +1,39 @@
[global]
log_dir = "/var/log/tunasync"
# mirror_root = /srv/mirror_disk
mirror_root = "/mnt/sdb1/mirror"
use_btrfs = false
local_dir = "{mirror_root}/_working/{mirror_name}/"
# maximum numbers of running jobs
concurrent = 2
# interval in minutes
interval = 1
max_retry = 2
[btrfs]
service_dir = "{mirror_root}/_current/{mirror_name}"
working_dir = "{mirror_root}/_working/{mirror_name}"
gc_dir = "{mirror_root}/_gc/{mirror_name}_{{timestamp}}"
[[mirrors]]
name = "archlinux"
provider = "rsync"
upstream = "rsync://mirror.us.leaseweb.net/archlinux/"
log_file = "/tmp/archlinux-{date}.log"
use_ipv6 = true
[[mirrors]]
name = "arch2"
provider = "shell"
command = "sleep 20"
local_dir = "/mnt/sdb1/mirror/archlinux/current/"
log_file = "/tmp/arch2-{date}.log"
[[mirrors]]
name = "arch4"
provider = "shell"
command = "./shell_provider.sh"
log_file = "/tmp/arch4-{date}.log"
use_btrfs = false
# vim: ft=toml

查看文件

@@ -1,49 +0,0 @@
[global]
log_dir = /var/log/tunasync
; mirror_root = /srv/mirror_disk
mirror_root = /mnt/sdb1/mirror
use_btrfs = no
local_dir = {mirror_root}/{mirror_name}/_working
; maximum numbers of running jobs
concurrent = 2
; interval in minutes
interval = 1
max_retry = 2
[btrfs]
service_dir = {mirror_root}/{mirror_name}/_current
working_dir = {mirror_root}/{mirror_name}/_working
gc_dir = {mirror_root}/{mirror_name}/_gc_{{timestamp}}
# rmirror:archlinux]
# provider = rsync
# upstream = rsync://mirror.us.leaseweb.net/archlinux/
# log_file = /tmp/archlinux-{date}.log
# use_ipv6 = yes
[mirror:archlinux]
provider = shell
command = sleep 20
local_dir = /mnt/sdb1/mirror/archlinux/current/
log_file = /tmp/archlinux-{date}.log
[mirror:arch2]
provider = shell
command = sleep 5
log_file = /tmp/arch2-{date}.log
use_btrfs = no
[mirror:arch3]
provider = shell
command = ./shell_provider.sh
log_file = /tmp/arch3-{date}.log
use_btrfs = no
[mirror:arch4]
provider = shell
command = ./shell_provider.sh
log_file = /tmp/arch4-{date}.log
use_btrfs = no