tunasync.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. status_file = "/tmp/tunasync.json"
  8. # maximum numbers of running jobs
  9. concurrent = 2
  10. # interval in minutes
  11. interval = 1
  12. max_retry = 2
  13. ctrl_addr = "/tmp/tunasync.sock"
  14. [btrfs]
  15. service_dir = "{mirror_root}/_current/{mirror_name}"
  16. working_dir = "{mirror_root}/_working/{mirror_name}"
  17. gc_dir = "{mirror_root}/_garbage/_gc_{mirror_name}_{{timestamp}}"
  18. # [[mirrors]]
  19. # name = "archlinux"
  20. # provider = "rsync"
  21. # upstream = "rsync://mirror.us.leaseweb.net/archlinux/"
  22. # log_file = "/tmp/archlinux-{date}.log"
  23. # use_ipv6 = true
  24. [[mirrors]]
  25. name = "arch1"
  26. provider = "shell"
  27. command = "sleep 10"
  28. local_dir = "/mnt/sdb1/mirror/archlinux/current/"
  29. # log_file = "/dev/null"
  30. [[mirrors]]
  31. name = "arch2"
  32. provider = "shell"
  33. command = "sleep 20"
  34. local_dir = "/mnt/sdb1/mirror/archlinux/current/"
  35. # log_file = "/dev/null"
  36. [[mirrors]]
  37. name = "arch4"
  38. provider = "shell"
  39. command = "./shell_provider.sh"
  40. upstream = "https://pypi.python.org/"
  41. # log_file = "/tmp/arch4-{date}.log"
  42. use_btrfs = false
  43. # vim: ft=toml