Talk:Backups

Can you add a section/page about how a user can make their own backups?
 * A user can't currently make their own backup, but can ask a sysadmin at any time, and it should be done in less than 24 hours. Reception123 (talk) ( contribs  ) 17:29, 27 August 2016 (UTC)
 * Can those backups happen on a scheduled basis? RobertSter (talk) 14:15, 2 September 2016 (UTC)
 * As John, Southparkfan and NDKilla explained, they are done on a scheduled basis, but the costs would be considerably higher if they were done every day, so therefore that isn't possible for the moment. Reception123 (talk) ( contribs  ) 16:07, 2 September 2016 (UTC)
 * Do we have estimates for those costs?RobertSter (talk) 16:33, 2 September 2016 (UTC)
 * The estimates depend on the exact backups, but it can be 400-1800$ more a year (estimation by John). Reception123 (talk) ( contribs  ) 18:48, 2 September 2016 (UTC)

doing a backup on linux
Here is a quick script I wrote to make a backup in Linux:

DATE=`date +%Y-%m-%d-%H-%M-%S` mysqldump -u root -p$( ~/backups/bitnami_mediawiki$DATE.sql cp /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php ~/backups/LocalSettings.php cp ~/mw-backup.sh ~/backups/mw-back.sh ls -l ~/backups/
 * 1) !/bin/bash
 * 2) PWD=$(<pwd)

the file pwd in the home directory contains the password.

Rsterbal (talk) 06:07, 9 February 2017 (UTC)

Making your own backups
Requires Python v2 (v3 doesn't yet work). Only works with public wikis.

Run the the WikiTeam Python script dumpgenerator.py from the command-line to get an XML, with edit histories, dump and a dump of all images plus their descriptions.

A XML dump does not create a full backup of the wiki database, the dump does not contain user accounts, extensions nor file types other than images.

Full instructions are at the WikiTeam tutorial.

--Rob Kam (talk) 23:43, 11 March 2017 (UTC)