This article describes the way to make a Disaster Recovery Site of a Confluence Installation
Assumptions taken below
|Confluence Installation Directory||/opt/confluence|
|Confluence Home Directory|
|MySQL Backup||Setup and working, backing up to /backup/mysqlbackup/|
|Disaster Recovery (Stand by) Server DNS name|
|rsync between servers||Setup and working via SSH keys|
rsyncing MySQL, Confluence Installation and Confluence Home Files
The MySQL backup of the Confluence database and the files of the installation must be syncronised to the alternate server (called drserver.site.dk)
This should be run with cron in regular intervals
Scripts and files
Script for dropping and creating a new database
Why change the server.xml and setenv.sh
Due to the fact this (problably) is a DR site, some facts can be:
- The HW specs are lower
- The URL (and hence Base URL) are different
So we want to change the server.xml and setenv.sh to reflect those changes, otherwise the system may never start correctly.
So, make a copy of :
Now, change the files as needed.
Restore Confluence script
This is the script that restores the Confluence on the DR server drserver.site.dk - It needs the files from above to work.