what files to backup to prepair for a disaster recovery?

Discussion in 'Technical' started by cruz, Nov 1, 2007.

  1. cruz

    cruz New Member

    I have two debian perfect setup. server1 and server2. I am using the same doamin on both server. I setup How To Back Up MySQL Databases Without Interrupting MySQL and it is working great. Now I need to setup so all the files will trancfer from server1 to server2 so I can switch to server 2 in case of a hardware failer or somthing like that. Any howto's that will work for this? thanks for having a site like this were people can learn and get good suport. Keep up the good work.
     
    Last edited: Nov 2, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    If you want high-availability, I suggest a combination of
    http://www.howtoforge.com/mysql5_master_master_replication_debian_etch
    http://www.howtoforge.com/haproxy_loadbalancer_debian_etch
    http://www.howtoforge.com/logresolvemerge.pl_merge_apache_access_logs

    You'd need four nodes for this, but you could use Xen to create virtual machines (on two physical machines: one load balancer vm and one web server vm on each physical machine).

    To transfer files from one server to the other, take a look at rsync: http://www.howtoforge.com/mirroring_with_rsync
     
  3. cruz

    cruz New Member

    one question

    When I set this up, what order do I install? the order you have set in your posting? from top to bottom? Also, is there a way to backup all databases on server1 to server2? Or do I need to comfigure
    HTML:
    Setting Up Master-Master Replication With MySQL 5 On Debian Etch 
    
    each database one at a time? I hope I am saying this corect. Like follow config for database1. then do the same for databas2. Like the mysql entries, table locks, ect in this install. They must be done seporet for each database and can not be done all together corect?
    One more thing. Is this the setup I need to do on the two servers and if so, in what order do I setup this and can it be configured to my server1 that has two sites running? (Xen Cluster Management With Ganeti On Debian Etch)
     
    Last edited: Nov 3, 2007
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes, I'd do it like that.

    You can do this all in one step. :)
     
  5. cruz

    cruz New Member

    two more questions

    I am getting ready to set this up. I have two qouestions.
    HTML:
    can it be configured to my server1 that has two sites running? (Xen Cluster Management With Ganeti On Debian Etch)
    2nd question would be a compleate setup of two NEW servers. Would it be hard to setup two new servers (serverA and serverB)and install the backup applications on them, then trancfer all the site files and databases from my server that is running my websites (server1) to the new setup, then change the ip addresses in the portforward to redirect network traffic to the new server. (serverA)? I just do not want to mess up the first server. I am very new to working in Linux, but am learning. Thanks for having a site were people can learn. I think your support is A1.
     

Share This Page