<> == Wiki Mirrors == Mirrors of the ROS wiki act as a backup when the [[http://wiki.ros.org|main site]] is unavailable, and may provide faster access to users who are geographically closer to the mirror. Current mirrors: <> * Asia: * <> * <> * <> * <> * <> * Europe: * <> * <> * <> * North America: * <> * <> * South America: * <> [[http://portal.fei.edu.br/en-us/pages/home.aspx|(Centro Universitário da FEI)]] == Debian Repository Mirrors == You will find Debian repository mirrors here: [[ROS/Installation/UbuntuMirrors]] == Creating a mirror == If you are maintaining a mirror please join the Mirrors category on discourse.ros.org: http://discourse.ros.org/c/mirrors for both feedback and prompt updates. === All in 1 Mirror === If you want to setup a machine to mirror the wiki, docs, and packages.ros.org follow these instructions to use puppet to setup your server. https://github.com/ros-infrastructure/mirror === Mirroring the wiki === This makes the assumption you're running a webserver in /var/www/wiki.ros.org. ==== Setup rsync ==== To create a mirror of the wiki. We have setup rsync servers for docs.ros.org and wiki.ros.org. {{{#!bash #!/bin/bash echo Downloading Wiki-Dump rsync -azv wiki.ros.org::wiki_mirror /var/www/wiki.ros.org --bwlimit=200 --delete }}} ==== Make timestamp available to the ros wiki ==== Make sure that your webserver supports sending the ''Access-Control-Allow-Origin'' header for the `wikidump.timestamp` file. * Apache must have the `headers` module enabled and the for directory `AllowOverride FileInfo` set. . On Ubuntu these settings may be done by running: {{{#!bash $ sudo a2enmod headers }}} Edit your web server config file, like this: {{{ # ... - AllowOverride None + AllowOverride FileInfo # ... }}} * Nginx needs the following configuration: {{{ location ~* ^/roswiki/.+\.timestamp$ { add_header Access-Control-Allow-Origin "http://wiki.ros.org"; } }}} === Mirroring docs.ros.org === This makes the assumption you're running a webserver in /var/www/docs.ros.org {{{#!bash #!/bin/bash echo Downloading API-Dump rsync -azv docs.ros.org::mirror /var/www/docs.ros.org --bwlimit=200 --copy-unsafe-links --delete }}} . If you need only certain ROS distro and exclude others, say `hydro`, you could download by: {{{ $ rsync -azv docs.ros.org::mirror/hydro /var/www/docs.ros.org --bwlimit=200 --copy-unsafe-links --delete }}} It's recommended to put these jobs into a `cron` job. Probably once a day is adequate. === Mirroring packages.ros.org mirror === To create a mirror of packages.ros.org it is recommended to use [[http://apt-mirror.github.io/|apt-mirror]]. There are many guides online how to setup an apt mirror. [[http://www.howtoforge.com/local_debian_ubuntu_mirror|Such as this one from howtoforge]]. There's a ROS specific answer on [[http://answers.ros.org/question/9163/how-do-i-set-up-a-ros-mirror/|answers.ros.org]].