Skip to main content

Mirror

Build Status Python version Release version PyPi version AUR version

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.

screenshot

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...

Metadata

Release files for mirror 0.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mirror 0.8.4
File Size Uploaded Provenance
mirror-0.8.4.tar.gz 78.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mirror 0.8.4
File Interpreter ABI Platform
mirror-0.8.4-py3-none-any.whl Python 3 none any Details

Total release size: 165.4 kB

Release files / mirror-0.8.4.tar.gz

Download URL mirror-0.8.4.tar.gz
Size 78.3 kB
Tags Source
SHA-256 checksum
How to use checksums
801ea1f43ec214e96a9b6160cdcf07d7eecbe0290fdcd8c19701599388affbe8
BLAKE2b-256 checksum
How to use checksums
f032407c1abbbfeb47ced90e1fd904dab1d9be32dcd2559eb2c70251118102c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

Release files / mirror-0.8.4-py3-none-any.whl

Download URL mirror-0.8.4-py3-none-any.whl
Size 87.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
101f1f5de45b7543084b03b70b33d1630e55ad2edfe7e2b93dabe5e209b4d3b2
BLAKE2b-256 checksum
How to use checksums
c68d532a479bf2c3f68cf53ee194e303e8e6ad814e1f6fbdffd47aa45115b006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

Security for mirror 0.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page