worker scripts - sjtug/mirror-docker GitHub Wiki
Usage
- type: shell_script
name: foobar
script: /worker-script/foobar.sh
interval: 3600
another_options: values
Scripts
rsync.sh
path
: where downloaded files will be stored, e.g./mnt/abc
source
: upstream, e.g.rsync://foobar
ignore_vanish
: When specified, ignorefile has vanished
error from upstream. Read more at https://unix.stackexchange.com/questions/86879/suppress-rsync-warning-some-files-vanished-before-they-could-be-transferred . By default this is not enabled. Example:true
exclude_hidden
: When specified, ignore all hidden files (i.e. starting with.
). Used to fix broken partial files from upstream. By default this is not enabled. Example:true
archlinux-cn.sh
Sync from Archlinux-CN.
path
: store path of packagesusername
: username ofsync.repo.archlinuxcn.org
password
: password ofsync.repo.archlinuxcn.org
awss3.sh
Sync from AWS S3 storage.
source
: S3 URL. e.g.s3://static-rust-lang-org/rustup
path
: store path of files
bandersnatch.sh
Sync from PyPI.
path
: store path of packagesmaster
: upstream. e.g.https://pypi.python.org/
anaconda.py
Sync from anaconda upstream.
pkgs at: https://repo.continuum.io/pkgs/ cloud pkgs at: https://conda.anaconda.org/{name}/{arch}/
path
: base store path of packagesthread_num
: number of working threads. Must be greater than number of upstream + 1! Otherwise deadlock may occur Default: 16k
:v
that starts withhttps://
: Sync a repo at URLv
to{path}/{k}
. Example:cloud/soumith/osx-64: https://conda.anaconda.org/soumith/osx-64/