Support

Site Restoration

#20717 Automate site copies - create mirror server

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by tampe125 on Wednesday, 13 August 2014 01:54 CDT

WebRequests
 I've read through the Akeeba Backup and UNITE documentation and I think this is possible, but I'd like confirmation before spending a ton of time trying to set up the system.

I've already successfully automated the Akeeba Backup process (including remote upload). What I want to do is automate backup and restoration.

We own two dedicated servers, and one is designed to be a mirror of the other. In the case of hardware failure (or other systemic failure) we want everything to failover to the mirror server. As such, I want to make sure that all of the sites on the mirror server are kept updated.

We currently have around 100 sites on our server. Ideally I'd like the workflow to look like this:

At some interval (daily or weekly) an automated backup takes place and the JPA file is uploaded to the mirror server. The backup file is then fully restored so the mirror server hosts a true copy of the live site.

At that point all we'd have to do is change the IP of our nameservers and all sites would then be loaded from the mirror server, and they'd be perfect copies.

We own both servers, so permissions and scripting are not a problem.

Is this possible to do with a mixture of Akeeba Backup and UNITE?

As a side note, is it possible to write a single script to have UNITE restore all 100 sites? Or will I need to add 100 lines to my crontab?

Note: If it matters, the server is running Apache and we're using WHM/cPanel to manage the server. Each site has a separate cPanel account and thus have separate MySQL databases.

tampe125
Akeeba Staff
Hello Greg,

yes, I think you can do that: you can run the backup and transfer it to the other server or upload it to Amazon S3, then tell UNiTE to restore it.
You will have to setup a task for each UNiTE restoration, so you'll need to create 100 different scripts.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!