Help:Downloading Camera-wiki.org

From Camera-wiki.org
Revision as of 00:00, 19 January 2011 by Rebollo fr (talk | contribs) (minor mistake)
Jump to: navigation, search

You might want to keep a copy of some of Camerapedia's contents at home for a variety of reasons. Maybe you want to create your own work version of the website, to write drafts; or you want to include the contents into another Mediawiki website (but please take care of the GFDL and of the special copyright status of the images). Or you might simply want to keep a backup, to be sure that the contents remains available to you in the future whatever happens of the website.

Instead of saving the contents of each and every page, here is a quick and easy way to proceed, through Mediawiki's export function:

  1. First you have to create a text file with a list of all the pages you want to download, putting one page title per line. If you want to download all the site's pages in one pass, you will have to make a complete list of all pages. Be warned this will be slightly tedious, and involves running command line scripts to have a properly formatted file. Pre-compiled lists, complete as of Jan. 8, 2011, are appended to this page: list of pages in the main namespace and list of other pages. (If you think these pages just contain garbage, click "edit" then type Ctrl-A and you'll see the point.)
  2. Now you have to paste this list into the site's Export page. Make sure to check "Save as file", otherwise your browser will try to display the resulting XML file. You're also given the choice of including the full history or not. Including the full history makes a much bigger file, but this is mandatory if you want to know who wrote which section of the pages, and to attribute the contents to its authors properly.
  3. Press "Export". Voilà, that's done, your browser is downloading an XML backup file that you can import back in another Mediawiki installation, with the full history log.