ISPConfig 3 Disaster Recovery

Discussion in 'General' started by supanatral, Mar 17, 2013.

  1. supanatral

    supanatral New Member

    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.
     
  2. falko

    falko Super Moderator

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

    Seg New Member

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

    What if it is physical servers?

    Seg
     
  4. florian030

    florian030 HowtoForge Supporter

    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.
     
  5. lollollollol

    lollollollol Member

    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...
     
  6. Seg

    Seg New Member

    I would be interested in this script mate.

    Seg
     
  7. supanatral

    supanatral New Member

    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?
     
  8. florian030

    florian030 HowtoForge Supporter

    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.
     
  9. lollollollol

    lollollollol Member

    Hi,
    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.
     

Share This Page