Task scheduler for open source mirror site (initially for https://mirror.bjtu.edu.cn)
Project description
Mirror
Mirror
is an open source python application for mirror site (e.g. mirror.bjtu.edu.cn) to sync files from upstreams (it uses rsync internally), it actually works like a cron, but still has some differences. It has been served for mirror.bjtu.edu.cn with more than 40 rsync tasks.
You are welcome to send comments, patches and any others to github or to @idealities.
Homepage: https://mirror.bjtu.edu.cn
Authors
- Shang Yuanchun
- Bob Gao
- Chestnut
For contributors and past developers see: AUTHORS
Installation Instructions
Install from PyPI
You can install mirror
by running pip:
$ sudo pip install mirror
Install from source
Or if you want to build and install from source:
$ python setup.py build
$ sudo python setup.py install
Config and running
After that, you are going to set up environment, you are encouraged to add a specific user to run mirrord
, here we suppose the username is mirror
and its home directory is /home/mirror
.
Make necessary directories:
$ sudo chown mirror:mirror /var/log/mirrord /var/log/rsync
$ sudo mkdir /etc/mirror
$ sudo cp config/mirror.ini /etc/mirror/
Now you can edit mirror.ini to fit your needs and run:
$ mirrord
and that's done. Also you can use man mirrord
or mirrord -h
to read the documents.
If mirrord
is running, you can run:
$ mirrord -t
to show the current task queue.
Contact/Support
Email: idealities@gmail.com
Features
- It's simple and easy to add a mirror
- You can set a priorty for each mirror, from 1 to 10, 1 is highest
- And scheduler will schedule a task depending on current conditions
- You can also set a timeout for each mirror
- Support for two stage syncing (for ubuntu, debian)
- You can also use it as another cron...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mirror-0.8.4.tar.gz
.
File metadata
- Download URL: mirror-0.8.4.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801ea1f43ec214e96a9b6160cdcf07d7eecbe0290fdcd8c19701599388affbe8 |
|
MD5 | 827c2d2b24d65bf3937ec02f3f26aea6 |
|
BLAKE2b-256 | f032407c1abbbfeb47ced90e1fd904dab1d9be32dcd2559eb2c70251118102c5 |
File details
Details for the file mirror-0.8.4-py3-none-any.whl
.
File metadata
- Download URL: mirror-0.8.4-py3-none-any.whl
- Upload date:
- Size: 87.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101f1f5de45b7543084b03b70b33d1630e55ad2edfe7e2b93dabe5e209b4d3b2 |
|
MD5 | 7efbe66e68b42b0a9e44fddb26bc7b31 |
|
BLAKE2b-256 | c68d532a479bf2c3f68cf53ee194e303e8e6ad814e1f6fbdffd47aa45115b006 |