tunasync.conf 952 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [global]
  2. log_dir = "/var/log/tunasync"
  3. # mirror_root = /srv/mirror_disk
  4. mirror_root = "/mnt/sdb1/mirror"
  5. use_btrfs = false
  6. local_dir = "{mirror_root}/_working/{mirror_name}/"
  7. # maximum numbers of running jobs
  8. concurrent = 2
  9. # interval in minutes
  10. interval = 1
  11. max_retry = 2
  12. [btrfs]
  13. service_dir = "{mirror_root}/_current/{mirror_name}"
  14. working_dir = "{mirror_root}/_working/{mirror_name}"
  15. gc_root = "{mirror_root}/_garbage/"
  16. gc_dir = "{mirror_root}/_garbage/_gc_{mirror_name}_{{timestamp}}"
  17. [[mirrors]]
  18. name = "archlinux"
  19. provider = "rsync"
  20. upstream = "rsync://mirror.us.leaseweb.net/archlinux/"
  21. log_file = "/tmp/archlinux-{date}.log"
  22. use_ipv6 = true
  23. [[mirrors]]
  24. name = "arch2"
  25. provider = "shell"
  26. command = "sleep 20"
  27. local_dir = "/mnt/sdb1/mirror/archlinux/current/"
  28. log_file = "/tmp/arch2-{date}.log"
  29. [[mirrors]]
  30. name = "arch4"
  31. provider = "shell"
  32. command = "./shell_provider.sh"
  33. log_file = "/tmp/arch4-{date}.log"
  34. use_btrfs = false
  35. # vim: ft=toml