# mirrord **Repository Path**: OtherCopy/mirrord ## Basic Information - **Project Name**: mirrord - **Description**: mirror of https://github.com/ideal/mirror.git - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: https://github.com/ideal/mirror.git - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-22 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mirror [![Build Status]][Github Actions] [![Python version]][PyPI] [![Release version]][Release url] [![PyPi version]][PyPI] [![AUR version]][AUR] `Mirror` is an open source python application for mirror site (e.g. [mirror.bjtu.edu.cn](https://mirror.bjtu.edu.cn)) to sync files from upstreams (it uses [rsync](http://rsync.samba.org/) internally), it actually works like a [cron](http://en.wikipedia.org/wiki/Cron), but still has some differences. It has been served for mirror.bjtu.edu.cn with more than 40 rsync [tasks](https://mirror.bjtu.edu.cn). You are welcome to send comments, patches and any others to [github](https://github.com/ideal/mirror/issues) or to [@idealities](http://twitter.com/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: ```bash $ sudo pip install mirror ``` ## Install from source Or if you want to build and install from source: ```bash $ 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: ```bash $ 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: ```bash $ 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: ```bash $ 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... [Build Status Old]: https://img.shields.io/travis/ideal/mirror/master.svg?logo=travis-ci [Build Status]: https://img.shields.io/github/workflow/status/ideal/mirror/Mirror%20test?logo=github [Github Actions]: https://github.com/ideal/mirror/actions [Travis CI]: https://travis-ci.org/ideal/mirror [Release version]: https://img.shields.io/github/release/ideal/mirror.svg?logo=github [Release url]: https://github.com/ideal/mirror/releases/latest [Python version]: https://img.shields.io/pypi/pyversions/mirror.svg?logo=python [PyPI version]: https://img.shields.io/pypi/v/mirror.svg?logo=python [PyPI]: https://pypi.python.org/pypi/mirror [AUR version]: https://img.shields.io/aur/version/mirror.svg?logo=arch-linux [AUR]: https://aur.archlinux.org/packages/mirror