Ask Your Question
6

Create a ROS.org Wiki Mirror

asked May 20 '11

mjcarroll gravatar image mjcarroll flag of United States
2863 21 41 63
http://mjcarroll.net/

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

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
10

answered May 20 '11

Felix Endres gravatar image Felix Endres flag of Germany
2105 5 18 44
http://www.informatik.uni...

updated Jun 20 '11

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 http://www.ros.org/wiki_dump/roswiki.tar.gz; 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 http://www.ros.org/wiki_dump/doc.tar.gz; 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

link delete flag offensive edit

Comments

Thanks felix, exactly what I was looking for. mjcarroll (May 20 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: May 20 '11

Seen: 397 times

Last updated: Jun 20 '11