Join the community today
Become a Member

Disaster recovery planning?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by joshuah, Apr 3, 2017.

Tags:
  1. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    6:50 PM
    What i am wondering is, what is the suggestion for disaster recovery when I want to store all backups offsite.

    I was thinking about running a rsync script to connect to the server via SSH and pull the whole www directory, and also at the same time do a whole mysqldump of all databases and copy them over at the same time.

    However, in the event that the whole server goes down or hardware fails.. how quickly can I get that all up and running on another virtual machine? like import all settings, virtual hosts etc.?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    Depends on how familiar you are with
    1. backup and restores of site/database data in general
    2. how familiar you are with Centmin Mod LEMP environment
    3. how much practice you do for backup/restores
    The intro thread reply has alot of useful links and in particular would be these 3
     
  3. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    6:50 PM
    I am confident with dumping and importing the databases via command line, rsyncing the www data.. however, not sure about the configurations.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    6:50 PM
    Do you happen to know if any pre-made scripts have been created - i mainly just want to check over it and implement my own stuff over the top for my own environment.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    on my Premium member dbbackup.sh script for mysql database backups https://community.centminmod.com/th...-database-backups-for-centmin-mod-stack.4573/ (excludes site files - that's something in the works later)

    or https://community.centminmod.com/resources/auto-database-backup-script.2/ for databases ONLY as well

    best guide still is https://community.centminmod.com/threads/centmin-mod-site-data-migration-guide.10382/ - if you're handy with shell/script automation you can basically roll those steps into your own scripts even including my keygen.sh tool