tunasync.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. [btrfs]
  14. service_dir = "{mirror_root}/_current/{mirror_name}"
  15. working_dir = "{mirror_root}/_working/{mirror_name}"
  16. gc_root = "{mirror_root}/_garbage/"
  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. log_file = "/tmp/arch4-{date}.log"
  41. use_btrfs = false
  42. # vim: ft=toml