Media Wiki Backup Automation: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
=MediaWiki Server Backup Script= | =MediaWiki Server Backup Script= | ||
A backup script that introspects the wikimedia instance, performs a full backup (database, files, extensions, configuration) and produces a file that can be used restore the wiki: {{External|[https://github.com/ovidiuf/shell-tools/blob/master/backup-system/backup- | A backup script that introspects the wikimedia instance, performs a full backup (database, files, extensions, configuration) and produces a file that can be used restore the wiki: {{External|[https://github.com/ovidiuf/shell-tools/blob/master/backup-system/mediawiki-backup mediawiki-backup]}} | ||
Reference kb.novaordis.com backup script: {{External|[https://github.com/ovidiuf/shell-tools/blob/master/backup-system/backup-kb.novaordis.com backup-kb.novaordis.com]}} | Reference kb.novaordis.com backup script: {{External|[https://github.com/ovidiuf/shell-tools/blob/master/backup-system/backup-kb.novaordis.com backup-kb.novaordis.com]}} |
Revision as of 03:34, 27 December 2020
External
Internal
Overview
MediaWiki Server Backup Script
A backup script that introspects the wikimedia instance, performs a full backup (database, files, extensions, configuration) and produces a file that can be used restore the wiki:
Reference kb.novaordis.com backup script:
To Implement
- Include the business traffic interface configuration in the backup set. See Restoring MediaWiki from Backup#business_traffic_interface.
- Include the iptables configuration /etc/sysconfig/iptables in the backup set. See Restoring MediaWiki from Backup#iptables_configuration.
- Create "novaordis_wiki-files-17.04.08-03.00.02.zip" whose root is mediawiki-1.26.2 from /var/www/. See Restoring_MediaWiki_from_Backup#Restore_the_MediaWiki_Deployment.
- Include /etc/httpd/conf.d/ssl.conf. See Restoring_MediaWiki_from_Backup#ssl_conf.
- Include
/etc/pki/tls/certs/kb.novaordis.com.crt /etc/pki/tls/private/kb.novaordis.com.key /etc/pki/tls/certs/kb.novaordis.com-godaddy-chain.crt
- Include backup mechanism files backup-kb.novaordis.com and relevant root's crontab content:
0 3 * * * /root/bin/backup-kb.novaordis.com