Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have our own intranet server with wikis on it. It is accessible from the outside, but we don't host our webpage on it. We keep most of our data in sync there, it's great for collaboration.

We marked some of our documents public and we want them accessible to the world, on our "hosting" based website.

We want to "mirror" the public articles (the ones that are visible when nobody is logged in) from this server in our office to our website somewhere on the internet.

Note: It would be nice to have some kind of cron job or something to have the hosting pull public data from the server every 4-8 hours or so to a browsable copy on the hosting service. There the website can link to it and display it in a different manner (we use different css, etc)

Neanderthal solution: I was thinking of cloning the public intranet site with something like "Teleport pro" (an old 1997 tool that still works wonders:) and then copy it to the website.

share|improve this question

closed as not constructive by pauska, Magellan, Scott Pack, Ward, RobM Nov 1 '12 at 21:51

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

what wiki are you using? – gravyface Nov 1 '12 at 12:29
Apple's Mountain Lion Server Wiki... I need something like an RSS feed of all the content from the server OR something similar to google cache. Just get the content you can from the page and display it. Server is down just keep displaying the old data. Server comes up again... reload everything. – unmircea Nov 1 '12 at 14:27
I can't agree on the "not constructive" clause below. I ended up getting my server dynamic dns on the web and using iFrames to the server from the main site... this offline to online sync/publish thing is rather hard to do... I think JavaScript would be able to grab web content BUT it has to be on the same domain name. Another solution would be to have the server run a kind of script and convert web data to JSON or XML and upload it to the website and have the website read it and display it. Too bad Wiki 4.0 on Mountain Lion Server does not publish project data via RSS or similar. – unmircea Nov 8 '12 at 12:20
up vote 0 down vote accepted

If you're using MediaWiki the DumpHTML extension pushes the whole thing out to static files:

edit: Not sure how this would handle pages that require a logon though.

share|improve this answer
Not using MediaWiki but dumping HTML to linked files is a good idea! – unmircea Jun 9 '14 at 10:38

You could try wget which works great in such cases and is easy to put into a cron job. It's available in every Linux distribution.

share|improve this answer
Tried. It doesn't play well. My url look like and there is some javascript in there to boot... so it has problems with that too. – unmircea Nov 1 '12 at 14:28
Have you tried the -k / --convert-links switch with wget to convert the links in the downloaded content? – James Yale Nov 1 '12 at 15:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.