HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   ISPConfig 3 Disaster Recovery (http://www.howtoforge.com/forums/showthread.php?t=60979)

supanatral 17th March 2013 03:16

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.

falko 17th March 2013 12:28

If you are using virtual machines, you can do a full backup each night. In addition to that, create SQL dumps every few hours.

Seg 17th March 2013 12:43

This is pretty much what I was asking in this thread, but hasn't been answered yet.

What if it is physical servers?

Seg

florian030 17th March 2013 13:20

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.

lollollollol 17th March 2013 15:04

Hello,

I use a script running each night, backing up:

/etc
/var/vmail
/usr/local/ispconfig
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...

Seg 17th March 2013 15:10

I would be interested in this script mate.

Seg

supanatral 17th March 2013 15:49

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:
/etc/shadow
/etc/shadow-
/etc/passwd
/etc/passwd-
/etc/group
/etc/group-

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?

florian030 17th March 2013 16:15

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.

lollollollol 6th April 2013 09:59

Hi,
Quote:

Originally Posted by Seg (Post 294110)
I would be interested in this script mate.

Seg

I'm late, sorry...

Here are the script:
https://paste.isalo.org/133
and:
https://paste.isalo.org/134

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 07:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.