ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
13

Create a ROS.org Wiki Mirror

asked 2011-05-20 01:08:24 -0600

mjcarroll gravatar image

Is there any well-defined way for creating a local mirror of the ROS.org wiki?

I'm interested in setting up an exact copy on a local webserver for a project that has no internet connection, and would like to make a full mirror (including images, etc).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
14

answered 2011-05-20 02:05:50 -0600

updated 2013-11-30 20:32:26 -0600

tfoote gravatar image

UPDATE: This has been deprecated and is officially documented at: http://wiki.ros.org/Mirrors on the wiki.

A dump of the wiki and api can be found at http://www.ros.org/wiki_dump/ The files in here help to get the look right.

I setup a wiki-mirror at http://ros.informatik.uni-freiburg.de/roswiki/, but it is rather outdated. Will fix that next week.

The below script is what I use now. The previous version had a bug, always reusing the first download of the tarballs!

#!/bin/bash
pushd /var/www/
echo Downloading Wiki-Dump
if wget -N <a href="http://www.ros.org/wiki_dump/roswiki.tar.gz">http://www.ros.org/wiki_dump/roswiki.tar.gz</a>; then #-N triggers timestamping, i.e., only fetch if newer, then overwrite existing
  rm -rf roswiki-old
  mv roswiki roswiki-old
  echo Extracting Wiki-Dump
  pv roswiki.tar.gz|tar xz 
  echo Extracting Wiki-Theme
  tar xzf rostheme.tgz -C roswiki

  echo Downloading API-Dump
  if wget -N <a href="http://www.ros.org/wiki_dump/doc.tar.gz">http://www.ros.org/wiki_dump/doc.tar.gz</a>; then
    echo Extracting API-Dump
    pv doc.tar.gz|tar xz -C roswiki
  fi
fi

It assumes your web root is /var/www and you want it in the subdirectory "roswiki". Also you need to have placed rostheme.tgz from the link above in /var/www

The pv pipes serve to show progress, which is nice to have for big file. pv is apt-gettable, but you can also coust omit it and give the file directly to tar, as done for rostheme.tgz

edit flag offensive delete link more

Comments

Thanks felix, exactly what I was looking for.
mjcarroll gravatar image mjcarroll  ( 2011-05-20 12:29:38 -0600 )edit

This has been deprecated and is officially documented at: http://wiki.ros.org/Mirrors on the wiki.

tfoote gravatar image tfoote  ( 2013-11-21 10:35:20 -0600 )edit

The newest tarball seems to be missing images(other files?) that were contained in previous tarballs. Is this a planned change? It seems like it is definitely missing the ROS logo & the little globe icon next to links. The most recent tarball (without docs): http://mediabox.grasp.upenn.edu/roswiki/

ben gravatar image ben  ( 2013-11-22 00:25:49 -0600 )edit
tfoote gravatar image tfoote  ( 2013-11-30 20:53:00 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2011-05-20 01:08:24 -0600

Seen: 2,626 times

Last updated: Nov 30 '13