Tools to mirror Linux distro repositories. https://r00t2.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||2 years ago|
|repomirror||2 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|README||3 years ago|
|TODO||3 years ago|
|example.config.xml||3 years ago|
|reposync||3 years ago|
|reposync.py||3 years ago|
|requirements.txt||3 years ago|
|setup.py||3 years ago|
This project will let you mirror a Linux distribution's repository/repositories (or BSD, etc.).
* RSync or FTP supported (RSync mirrors require rsync to be installed and in the $PATH environment variable) (HTTP/HTTPS cannot and will not be supported as there's no real way to do it reliably and efficiently.)
* Locking - prevent a specific distribution from syncing if it is currently being synced but allow other distributions to sync
* Customizable rsync arguments
* Changing of directory/file ownership per-distribution
* Mount-checking per-distribution - a distribution will be skipped if its designated mountpoint is not mounted
* Synchronization checks - timestamp files can be read and written and are used to determine if a sync should take place or not
See example.config.xml for details on a configuration file, as it's extensively commented and won't be covered in this README.
You can also run reposync -h (or reposync --help) to see all supported options.
You may take special interest in repomirror/utils/find_fastest_upstream/ scripts as they're pre-written to find the fastest (in theory) upstream you can use. Currently only Arch Linux and CentOS have scripts written, but I'll gladly try to add other distros if you open a feature request (see below). You can run -h/--help to see the supported options (there aren't many).
Please use my tracker at https://bugs.square-r00t.net/index.php?project=14 or, if you prefer to not create an account, simply email me at bts(at)square-r00t[dot]net.
This project can be found at/cloned from:
And has a mirrored repository on GitHub (Issues/Wiki/etc. disabled) at:
It can also be found on PyPi at: