Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th March 2013, 03:16
supanatral supanatral is offline
Member
 
Join Date: Mar 2010
Posts: 38
Thanks: 1
Thanked 4 Times in 4 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2013, 12:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

If you are using virtual machines, you can do a full backup each night. In addition to that, create SQL dumps every few hours.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th March 2013, 12:43
Seg Seg is offline
Junior Member
 
Join Date: Mar 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

What if it is physical servers?

Seg
Reply With Quote
  #4  
Old 17th March 2013, 13:20
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 234
Thanks: 8
Thanked 65 Times in 56 Posts
Default

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.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #5  
Old 17th March 2013, 15:04
lollollollol lollollollol is offline
Member
 
Join Date: Nov 2011
Location: Madagascar
Posts: 44
Thanks: 7
Thanked 6 Times in 5 Posts
Default

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...
Reply With Quote
  #6  
Old 17th March 2013, 15:10
Seg Seg is offline
Junior Member
 
Join Date: Mar 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would be interested in this script mate.

Seg
Reply With Quote
  #7  
Old 17th March 2013, 15:49
supanatral supanatral is offline
Member
 
Join Date: Mar 2010
Posts: 38
Thanks: 1
Thanked 4 Times in 4 Posts
Default

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?
Reply With Quote
The Following User Says Thank You to supanatral For This Useful Post:
bamlesqtivanova6307 (12th April 2013)
  #8  
Old 17th March 2013, 16:15
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 234
Thanks: 8
Thanked 65 Times in 56 Posts
Default

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.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #9  
Old 6th April 2013, 09:59
lollollollol lollollollol is offline
Member
 
Join Date: Nov 2011
Location: Madagascar
Posts: 44
Thanks: 7
Thanked 6 Times in 5 Posts
 
Default

Hi,
Quote:
Originally Posted by Seg View Post
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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 18:10
vhost.conf.master does not generate any virtual host ollea Installation/Configuration 24 23rd April 2012 14:12
chroot SSH IspConfig2 kextra1 General 4 20th January 2011 18:41
ISPConfig 3.0.1 released till General 36 29th March 2009 14:30
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 00:18.


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