123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822 |
- # /home/scripts in this example points to https://github.com/tuna/tunasync-scripts/
- [global]
- name = "mirror_worker"
- log_dir = "/srv/tunasync/log/tunasync/{{.Name}}"
- mirror_dir = "/srv/tunasync"
- concurrent = 10
- interval = 120
- # ensure the exec user be add into `docker` group
- [docker]
- # in `command provider` can use docker_image and docker_volumes
- enable = true
- [manager]
- api_base = "http://localhost:12345"
- token = "some_token"
- ca_cert = ""
- [cgroup]
- enable = false
- base_path = "/sys/fs/cgroup"
- group = "tunasync"
- [server]
- hostname = "localhost"
- listen_addr = "127.0.0.1"
- listen_port = 6000
- ssl_cert = ""
- ssl_key = ""
- [[mirrors]]
- name = "adobe-fonts"
- interval = 1440
- provider = "command"
- upstream = "https://github.com/adobe-fonts"
- command = "/home/scripts/adobe-fonts.sh"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "AdoptOpenJDK"
- interval = 5760
- provider = "command"
- command = "/home/scripts/adoptopenjdk.py"
- upstream = "https://adoptopenjdk.jfrog.io/adoptopenjdk"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "alpine"
- provider = "rsync"
- upstream = "rsync://rsync.alpinelinux.org/alpine/"
- memory_limit = "256M"
- [[mirrors]]
- name = "anaconda"
- provider = "command"
- upstream = "https://repo.continuum.io/"
- command = "/home/scripts/anaconda.py --delete"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- interval = 720
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "apache"
- provider = "rsync"
- upstream = "rsync://rsync.apache.org/apache-dist/"
- use_ipv4 = true
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "armbian"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://rsync.armbian.com/apt/"
- memory_limit = "256M"
- [[mirrors]]
- name = "armbian-releases"
- provider = "rsync"
- stage1_profile = "debian"
- upstream = "rsync://rsync.armbian.com/dl/"
- memory_limit = "256M"
- [[mirrors]]
- name = "bananian"
- provider = "command"
- upstream = "https://dl.bananian.org/"
- command = "/home/scripts/lftp.sh"
- interval = 1440
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "bioconductor"
- provider = "rsync"
- upstream = "master.bioconductor.org:./"
- rsync_options = [ "--rsh=ssh -i /root/id_rsa -o PasswordAuthentication=no -l sync" ]
- exclude_file = "/etc/excludes/bioconductor.txt"
- memory_limit = "256M"
- [[mirrors]]
- name = "blender"
- provider = "rsync"
- upstream = "rsync://mirrors.dotsrc.org/blender/"
- rsync_options = [ "--delete-excluded" ]
- exclude_file = "/etc/excludes/blender.txt"
- interval = 1440
- memory_limit = "256M"
- [[mirrors]]
- name = "chakra"
- provider = "rsync"
- upstream = "rsync://rsync.chakralinux.org/packages/"
- memory_limit = "256M"
- [[mirrors]]
- name = "chakra-releases"
- provider = "rsync"
- upstream = "rsync://rsync.chakralinux.org/releases/"
- memory_limit = "256M"
- [[mirrors]]
- name = "chef"
- interval = 1440
- provider = "command"
- upstream = "https://packages.chef.io/repos"
- command = "/home/scripts/chef.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "clickhouse"
- interval = 2880
- provider = "rsync"
- upstream = "rsync://repo.yandex.ru/yandexrepo/clickhouse/"
- exclude_file = "/etc/excludes/clickhouse.txt"
- memory_limit = "256M"
- [[mirrors]]
- name = "clojars"
- provider = "command"
- upstream = "s3://clojars-repo-production/"
- command = "/home/scripts/s3.sh"
- docker_image = "tunathu/ftpsync:latest"
- [mirrors.env]
- TUNASYNC_S3_ENDPOINT = "https://s3.dualstack.us-east-2.amazonaws.com"
- #TUNASYNC_S3_ENDPOINT = "https://s3.us-east-2.amazonaws.com"
- TUNASYNC_AWS_OPTIONS = "--delete --exclude index.html"
- [[mirrors]]
- name = "CPAN"
- provider = "rsync"
- upstream = "rsync://cpan-rsync.perl.org/CPAN/"
- memory_limit = "256M"
- [[mirrors]]
- name = "CRAN"
- provider = "rsync"
- upstream = "rsync://cran.r-project.org/CRAN/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "CTAN"
- provider = "rsync"
- upstream = "rsync://mirrors.rit.edu/CTAN/"
- memory_limit = "256M"
- [[mirrors]]
- name = "dart-pub"
- provider = "command"
- upstream = "https://pub.dev/api"
- command = "/home/scripts/pub.sh"
- interval = 30
- docker_image = "tunathu/pub-mirror:latest"
- [mirrors.env]
- MIRROR_BASE_URL = "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"
- [[mirrors]]
- name = "debian"
- provider = "command"
- upstream = "rsync://mirrors.tuna.tsinghua.edu.cn/debian/"
- command = "/home/scripts/debian.sh sync:archive:debian"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- docker_image = "tunathu/ftpsync"
- docker_volumes = [
- "/etc/misc/ftpsync-debian.conf:/ftpsync/etc/ftpsync-debian.conf:ro",
- "/log/ftpsync:/home/log/tunasync/ftpsync",
- ]
- [mirrors.env]
- FTPSYNC_LOG_DIR = "/home/log/tunasync/ftpsync"
- [[mirrors]]
- name = "docker-ce"
- provider = "command"
- upstream = "https://download.docker.com/"
- command = "timeout 3h /home/scripts/docker-ce.py --workers 10 --fast-skip"
- interval = 1440
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "ELK"
- interval = 1440
- provider = "command"
- upstream = "https://packages.elastic.co"
- command = "/home/scripts/ELK.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- # set environment varialbes
- [mirrors.env]
- WGET_OPTIONS = "-6"
- [[mirrors]]
- name = "elasticstack"
- interval = 1440
- provider = "command"
- upstream = "https://artifacts.elastic.co/"
- command = "/home/scripts/elastic.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "erlang-solutions"
- interval = 1440
- provider = "command"
- upstream = "https://packages.erlang-solutions.com"
- command = "/home/scripts/erlang.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "flutter"
- interval = 1440
- provider = "command"
- upstream = "https://storage.googleapis.com/flutter_infra/"
- command = "/home/scripts/flutter.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "github-release"
- provider = "command"
- upstream = "https://api.github.com/repos/"
- command = "/home/scripts/github-release.py --workers 5"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- interval = 720
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- GITHUB_TOKEN = "xxxxx"
- [[mirrors]]
- name = "gitlab-ce"
- interval = 1440
- provider = "command"
- upstream = "https://packages.gitlab.com/gitlab/gitlab-ce/"
- command = "/home/scripts/gitlab-ce.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "gitlab-ee"
- interval = 1440
- provider = "command"
- upstream = "https://packages.gitlab.com/gitlab/gitlab-ee/"
- command = "/home/scripts/gitlab-ce.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "gitlab-runner"
- interval = 1440
- provider = "command"
- upstream = "https://packages.gitlab.com/runner/gitlab-runner"
- command = "/home/scripts/gitlab-runner.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "grafana"
- interval = 1440
- provider = "command"
- upstream = "https://packages.grafana.com/oss"
- command = "/home/scripts/grafana.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "hackage"
- provider = "command"
- command = "/home/scripts/hackage.sh"
- upstream = "https://hackage.haskell.org/"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "homebrew-bottles"
- provider = "command"
- upstream = "https://homebrew.bintray.com"
- command = "/home/scripts/linuxbrew-bottles.sh"
- docker_image = "tunathu/homebrew-mirror"
- # set environment varialbes
- [mirrors.env]
- HOMEBREW_REPO = "https://neomirrors.tuna.tsinghua.edu.cn/git/homebrew"
- [[mirrors]]
- name = "influxdata"
- interval = 1440
- provider = "command"
- upstream = "https://repos.influxdata.com"
- command = "/home/scripts/influxdata.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "kali"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://ftp.nluug.nl/kali/"
- rsync_options = [ "--delete-excluded" ] # delete .~tmp~ folders
- memory_limit = "256M"
- [[mirrors]]
- name = "kali-images"
- provider = "rsync"
- upstream = "rsync://ftp.nluug.nl/kali-images/"
- rsync_options = [ "--delete-excluded" ] # delete .~tmp~ folders
- memory_limit = "256M"
- [[mirrors]]
- name = "KaOS"
- provider = "rsync"
- upstream = "rsync://kaosx.tk/kaos/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "kernel"
- provider = "rsync"
- upstream = "rsync://rsync.kernel.org/pub/linux/kernel/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "kicad"
- provider = "command"
- upstream = "s3://kicad-downloads/"
- command = "/home/scripts/s3.sh"
- docker_image = "tunathu/ftpsync:latest"
- [mirrors.env]
- TUNASYNC_S3_ENDPOINT = "https://s3.cern.ch"
- TUNASYNC_AWS_OPTIONS = "--delete --exclude index.html"
- [[mirrors]]
- name = "kodi"
- provider = "rsync"
- upstream = "rsync://mirror.yandex.ru/mirrors/xbmc/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- use_ipv6 = true
- [[mirrors]]
- name = "kubernetes"
- interval = 2880
- provider = "command"
- upstream = "http://packages.cloud.google.com"
- command = "/home/scripts/kubernetes.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "linuxbrew-bottles"
- provider = "command"
- upstream = "https://linuxbrew.bintray.com"
- command = "/home/scripts/linuxbrew-bottles.sh"
- docker_image = "tunathu/homebrew-mirror"
- # set environment varialbes
- [mirrors.env]
- RUN_LINUXBREW = "true"
- HOMEBREW_REPO = "https://neomirrors.tuna.tsinghua.edu.cn/git/homebrew"
- [[mirrors]]
- name = "linuxmint"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://mirrors.kernel.org/linuxmint-packages/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "lxc-images"
- provider = "command"
- upstream = "https://us.images.linuxcontainers.org/"
- command = "/home/scripts/lxc-images.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- interval = 720
- [[mirrors]]
- name = "lyx"
- provider = "command"
- upstream = "ftp://ftp.lyx.org/pub/lyx/"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- TUNASYNC_LFTP_OPTIONS = "--only-newer"
- [[mirrors]]
- name = "mongodb"
- interval = 1440
- provider = "command"
- upstream = "https://repo.mongodb.org"
- command = "/home/scripts/mongodb.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "msys2"
- provider = "command"
- upstream = "http://repo.msys2.org/"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "mysql"
- interval = 30
- provider = "command"
- upstream = "https://repo.mysql.com"
- command = "/home/scripts/mysql.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- # set environment varialbes
- [mirrors.env]
- USE_IPV6 = "1"
- [[mirrors]]
- name = "nix"
- interval = 1440
- provider = "command"
- upstream = "s3://nix-releases/nix/"
- command = "/home/scripts/nix.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- MIRROR_BASE_URL = 'https://mirrors.tuna.tsinghua.edu.cn/nix/'
- [[mirrors]]
- name = "nix-channels"
- interval = 300
- provider = "command"
- upstream = "https://nixos.org/channels"
- command = "timeout 20h /home/scripts/nix-channels.py"
- docker_image = "tunathu/nix-channels:latest"
- docker_options = [
- "--cpus", "20",
- ]
- [[mirrors]]
- name = "nodesource"
- provider = "command"
- upstream = "https://deb.nodesource.com/"
- command = "/home/scripts/nodesource.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "openresty"
- provider = "command"
- upstream = "https://openresty.org/package/"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- TUNASYNC_LFTP_OPTIONS = "--only-newer"
- [[mirrors]]
- name = "packagist"
- provider = "command"
- upstream = "http://packagist.org/"
- command = "/home/scripts/packagist.sh"
- interval = 1440
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "proxmox"
- interval = 1440
- provider = "command"
- upstream = "http://download.proxmox.com"
- command = "/home/scripts/proxmox.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "pypi"
- provider = "command"
- upstream = "https://pypi.python.org/"
- command = "/home/scripts/pypi.sh"
- docker_image = "tunathu/bandersnatch:latest"
- interval = 5
- [[mirrors]]
- name = "qt"
- provider = "rsync"
- upstream = "rsync://master.qt-project.org/qt-all/"
- exclude_file = "/etc/excludes/qt.txt"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "raspberrypi"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://apt-repo.raspberrypi.org/archive/debian/"
- memory_limit = "256M"
- [[mirrors]]
- name = "raspbian-images"
- interval = 5760
- provider = "command"
- upstream = "https://downloads.raspberrypi.org/"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- TUNASYNC_LFTP_OPTIONS = "-x ^icons/$ -c --only-missing -v --no-perms"
- [[mirrors]]
- name = "raspbian"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://archive.raspbian.org/archive/"
- rsync_options = [ "--delete-excluded" ] # delete .~tmp~ folders
- memory_limit = "256M"
- [[mirrors]]
- name = "redhat"
- provider = "rsync"
- upstream = "rsync://ftp.redhat.com/redhat/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- exclude_file = "/etc/excludes/redhat.txt"
- interval = 1440
- [mirrors.env]
- RSYNC_PROXY="127.0.0.1:8123"
- [[mirrors]]
- name = "remi"
- interval = 1440
- provider = "command"
- upstream = "rsync://rpms.remirepo.net"
- command = "/home/scripts/remi.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "repo-ck"
- provider = "command"
- upstream = "http://repo-ck.com"
- command = "/home/scripts/repo-ck.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "ros"
- provider = "rsync"
- upstream = "rsync://mirror.umd.edu/packages.ros.org/ros/"
- memory_limit = "256M"
- [[mirrors]]
- name = "ros2"
- interval = 1440
- provider = "command"
- upstream = "http://packages.ros.org/ros2"
- command = "/home/scripts/ros2.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "rubygems"
- provider = "command"
- upstream = "https://rubygems.org"
- command = "/home/scripts/rubygems.sh"
- docker_image = "tunathu/rubygems-mirror"
- interval = 60
- # set environment varialbes
- [mirrors.env]
- INIT = "0"
- [[mirrors]]
- name = "rudder"
- interval = 2880
- provider = "command"
- upstream = "https://repository.rudder.io"
- command = "/home/scripts/rudder.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "rustup"
- provider = "command"
- upstream = "https://rustup.rs/"
- command = "/home/scripts/rustup.sh"
- interval = 1440
- docker_image = "tunathu/rustup-mirror:latest"
- docker_volumes = [
- ]
- docker_options = [
- ]
- [mirrors.env]
- MIRROR_BASE_URL = "https://mirrors.tuna.tsinghua.edu.cn/rustup"
- [[mirrors]]
- name = "saltstack"
- interval = 1440 # required on http://repo.saltstack.com/#mirror
- provider = "command"
- upstream = "s3://s3/"
- command = "/home/scripts/s3.sh"
- docker_image = "tunathu/ftpsync:latest"
- [mirrors.env]
- TUNASYNC_S3_ENDPOINT = "https://s3.repo.saltstack.com"
- TUNASYNC_AWS_OPTIONS = "--delete --exact-timestamps"
- [[mirrors]]
- name = "solus"
- provider = "rsync"
- upstream = "rsync://mirrors.rit.edu/solus/"
- rsync_options = [ "--exclude", "/shannon", "--exclude", "/unstable" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "stackage"
- provider = "command"
- command = "/home/scripts/stackage.py"
- upstream = "https://www.stackage.org/"
- docker_image = "tunathu/tunasync-scripts:latest"
- # set environment varialbes
- [mirrors.env]
- GIT_COMMITTER_NAME = "TUNA mirrors"
- GIT_COMMITTER_EMAIL = "mirrors@tuna.tsinghua.edu.cn"
- [[mirrors]]
- name = "steamos"
- interval = 1440
- provider = "command"
- upstream = "http://repo.steampowered.com"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- TUNASYNC_LFTP_OPTIONS = "--only-newer --exclude icons/ "
- [[mirrors]]
- name = "termux"
- interval = 1440
- provider = "command"
- upstream = "https://dl.bintray.com/termux/termux-packages-24/"
- command = "/home/scripts/termux.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "ubuntu"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://archive.ubuntu.com/ubuntu/"
- rsync_options = [ "--delete-excluded" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "ubuntu-ports"
- provider = "two-stage-rsync"
- stage1_profile = "debian"
- upstream = "rsync://ports.ubuntu.com/ubuntu-ports/"
- rsync_options = [ "--delete-excluded" ]
- exclude_file = "/etc/excludes/ubuntu-ports-exclude.txt"
- memory_limit = "256M"
- [[mirrors]]
- name = "virtualbox"
- interval = 1440
- provider = "command"
- upstream = "http://download.virtualbox.org/virtualbox"
- command = "/home/scripts/virtualbox.sh"
- size_pattern = "size-sum: ([0-9\\.]+[KMGTP])"
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "winehq"
- provider = "command"
- upstream = "ftp://ftp.winehq.org/pub/"
- command = "/home/scripts/lftp.sh"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- TUNASYNC_LFTP_OPTIONS = "-x wine-builds.old/ -x /\\..+"
- [[mirrors]]
- name = "zabbix"
- provider = "rsync"
- upstream = "rsync://repo.zabbix.com/mirror/"
- rsync_options = [ "--delete-excluded", "--chmod=o+r,Do+x,Fa-x" ]
- memory_limit = "256M"
- [[mirrors]]
- name = "AOSP"
- interval = 720
- provider = "command"
- command = "/home/tunasync-scripts/aosp.sh"
- upstream = "https://android.googlesource.com/mirror/manifest"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- REPO = "/usr/local/bin/aosp-repo"
- REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo"
- USE_BITMAP_INDEX = "1"
- [[mirrors]]
- name = "lineageOS"
- interval = 720
- provider = "command"
- command = "/home/tunasync-scripts/aosp.sh"
- upstream = "https://github.com/LineageOS/mirror"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- REPO = "/usr/local/bin/aosp-repo"
- REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo"
- USE_BITMAP_INDEX = "1"
- [[mirrors]]
- name = "chromiumos"
- interval = 720
- provider = "command"
- command = "/home/tunasync-scripts/cros.sh"
- upstream = "https://chromium.googlesource.com"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- fail_on_match = "fatal: "
- docker_image = "tunathu/tunasync-scripts:latest"
- [mirrors.env]
- USE_BITMAP_INDEX = "1"
- CONCURRENT_JOBS = "20"
- [[mirrors]]
- name = "crates.io-index.git"
- provider = "command"
- command = "/home/tunasync-scripts/git.sh"
- upstream = "https://github.com/rust-lang/crates.io-index.git"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
- [[mirrors]]
- name = "flutter-sdk.git"
- provider = "command"
- command = "/home/tunasync-scripts/git.sh"
- upstream = "git://github.com/flutter/flutter.git"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
- [[mirrors]]
- name = "gcc.git"
- provider = "command"
- command = "/home/tunasync-scripts/git.sh"
- upstream = "git://gcc.gnu.org/git/gcc.git"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
- [[mirrors]]
- name = "gentoo-portage.git"
- provider = "command"
- command = "/home/tunasync-scripts/git.sh"
- upstream = "git://github.com/gentoo-mirror/gentoo.git"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
- [[mirrors]]
- name = "git-repo"
- provider = "command"
- command = "/home/tunasync-scripts/git-repo.sh"
- upstream = "https://gerrit.googlesource.com/git-repo"
- size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
- fail_on_match = "fatal: "
- docker_image = "tunathu/tunasync-scripts:latest"
- [[mirrors]]
- name = "homebrew"
- provider = "command"
- command = "/home/tunasync-scripts/homebrew.sh"
- upstream = "https://github.com/Homebrew"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- [[mirrors]]
- name = "CocoaPods"
- provider = "command"
- command = "/home/tunasync-scripts/cocoapods.sh"
- upstream = "https://github.com/CocoaPods"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- [[mirrors]]
- name = "pybombs"
- interval = 720
- provider = "command"
- command = "/home/tunasync-scripts/pybombs.sh"
- upstream = "https://github.com/scateu/pybombs-mirror/"
- docker_image = "tunathu/tunasync-scripts:latest"
- docker_volumes = ["/home/pybombs-mirror:/opt/pybombs-mirror"]
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- [mirrors.env]
- PYBOMBS_MIRROR_SCRIPT_PATH = "/opt/pybombs-mirror"
- MIRROR_BASE_URL = "https://mirrors.tuna.tsinghua.edu.cn/pybombs"
- [[mirrors]]
- name = "llvm"
- provider = "command"
- command = "/home/tunasync-scripts/llvm.sh"
- upstream = "https://git.llvm.org/git"
- docker_image = "tunathu/tunasync-scripts:latest"
- size_pattern = "Total size is ([0-9\\.]+[KMGTP]?)"
- # vim: ft=toml
|