Backup the EEH Wiki to an Azure Filestore
- All wiki files
- Database
- Wiki in XML Format
- mariadb-backup (comes preinstalled with MariaDB)
- (azure cli)[https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt]
- disables write access to wiki whilst backup occuring
- Install azure-cli:
apt-get install azure-cli -y
- Clone repo to /opt/backup:
git clone [email protected]:eehackspace/eeh-wiki-backups.git /opt/backup
- Rename secrets.inc.example to secrets.inc
mv secrets.inc.example secrets.inc
- Add the Azure storage credtentials to
secrets.inc
- Install cronjob:
cp /opt/backup/cron/eeh-wiki-backup-cron /etc/cron.d/
- Configure mediawiki, add the following lines to /opt/bitnami/mediawiki/LocalSettings.php
# EEH Backup Settings #$wgReadOnly = 'Daily Backup In Progress. Access will be restored shortly.';
- Finish