ISPConfig 3 Disaster Recovery
As we are relying more and more on ISPConfig, I've felt a need to plan the disaster recovery incase of server failure.
Does anyone have a planned DR process that they can pass on? So far my Google searches have come up short.
If you are using virtual machines, you can do a full backup each night. In addition to that, create SQL dumps every few hours.
This is pretty much what I was asking in this thread, but hasn't been answered yet.
What if it is physical servers?
Depends on your setup... Maybe you can simply dump your filesystem.
You need to Backup mysql, mail, web, /usr/local/ispconfig, some files/dirs in /etc and so on.
I backup each night nearly the complete systeme (excluding web and mail since itīs already replicated to other servers). If one server crashes, i can install ISPConfig, re-import all databases and copy all files to the fresh installed system.
But I`ve also an image for the server available by ftp to use it during an fresh install. Since most config-files are changed rarely, it should work out-of-the box as long as the image is not to old. Such an image could also be restored in runlevel 1 (or in the rescue-mode) by simple extracting the archive.
I use a script running each night, backing up:
All sql databases
All sites: /var/www/clients/*/*
And it send everything on a FTP
If you need it I can share it.
It's an adaptation of some scripts found on the Net.
Searching this words "script backup ISPCONFIG" on a search engine will give you plenty of answers...
I would be interested in this script mate.
I've done a SQL dump and restore on a test box however I found that it doesn't recreate the directory structure for mail.
Also, would you have to backup:
When you create websites, it creates each website under a specific unix username and grants that username permissions to the directory. How would I restore the permissions on that?
You should backup the whole /etc-directory. You wouldnīt need all, but it may helps to recover something you may not thinking about.
I use this script to backup ISPConfig-Files. Just add /etc and /usr/local/ispconfig to the backup and it should work.
To restore simple extract the created archives and restore the databases.
If you would like to create an complete image of your server, you can find my script here.
Here are the script:
First one backup for two days locally and send backups on a ftp
Second one send weekly by scp to a distant server.
|All times are GMT +2. The time now is 14:06.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.