[CentOS] Best way to backup and entire machine??

2009-09-18 Thread John Plemons
I want to mirror a Centos box, not having done this before, I'm looking 
for guidance.


What is the best way to perform this task, I have a running webserver, a 
single external IP address to the website, and wanted to protect myself 
should the server go down. My though would be a mirror of that 
webserver, running in background, if the main server dies, then just 
move the mirror in place, change the IP and go on...  Limiting down time...


John Plemons



attachment: john.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best way to backup and entire machine??

2009-09-18 Thread nate
John Plemons wrote:
 I want to mirror a Centos box, not having done this before, I'm looking
 for guidance.

 What is the best way to perform this task, I have a running webserver, a
 single external IP address to the website, and wanted to protect myself
 should the server go down. My though would be a mirror of that
 webserver, running in background, if the main server dies, then just
 move the mirror in place, change the IP and go on...  Limiting down time...

Depends on what data is on the system, if it is just static
content then I would configure the backup system the same way
as the primary and setup a rsync over ssh job to keep the
web content in sync.

If there is a database or other things then it can be more
complicated.

nate


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best way to backup and entire machine??

2009-09-18 Thread Marcus Moeller
Dear John,

 I want to mirror a Centos box, not having done this before, I'm looking
 for guidance.

 What is the best way to perform this task, I have a running webserver, a
 single external IP address to the website, and wanted to protect myself
 should the server go down. My though would be a mirror of that
 webserver, running in background, if the main server dies, then just
 move the mirror in place, change the IP and go on...  Limiting down time...

You may also find some useful information on the wiki:

http://wiki.centos.org/HowTos

Best Regards
Marcus
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best way to backup and entire machine??

2009-09-18 Thread Les Mikesell
John Plemons wrote:
 I want to mirror a Centos box, not having done this before, I'm looking 
 for guidance.
 
 What is the best way to perform this task, I have a running webserver, a 
 single external IP address to the website, and wanted to protect myself 
 should the server go down. My though would be a mirror of that 
 webserver, running in background, if the main server dies, then just 
 move the mirror in place, change the IP and go on...  Limiting down time...

There are several approaches, depending on how you want to trade expense 
and effort against possible downtime - and whether your site is 
approaching the point where you need a load-balanced farm of servers and 
possibly redundant sites.

The easiest plan with the least to go wrong is probably to use RAID1 
mirrored/swappable drives with a spare chassis, and also do nightly 
backups.  The most likely failure will be a disk drive, handled 
transparently by the mirror until you can replace it.  Next most likely 
would be the power supply/motherboard which you handle by swapping the 
disks to your spare with a small amount of downtime.  Next would be an 
operator or software error that erases or corrupts your disks.  For that 
you have to restore from your last backup with a much longer downtime.

You can keep the spare server in sync with DRBD and fail over 
automatically with heartbeat at the expense of more complexity but you 
still need backups for the error scenaro.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best way to backup and entire machine??

2009-09-18 Thread John Plemons
The web machine uses a PHP shopping cart running atop MySQL, all of the 
main and important information is kept as a part of the MySQL DB.  So 
the main thing I would want to mirror is the application and the DB.  
I'm a surplus dealer, so hardware isn't a big issue, I have extra 
servers that can be up in a couple of hours without any big layout of money.
I'm just looking for the best way to keep down time to a minimum and as 
always to KISS, Keep It Simple Stupid.  Simple to manage, simple to 
maintain...


John



Les Mikesell wrote:

John Plemons wrote:
  
I want to mirror a Centos box, not having done this before, I'm looking 
for guidance.


What is the best way to perform this task, I have a running webserver, a 
single external IP address to the website, and wanted to protect myself 
should the server go down. My though would be a mirror of that 
webserver, running in background, if the main server dies, then just 
move the mirror in place, change the IP and go on...  Limiting down time...



There are several approaches, depending on how you want to trade expense 
and effort against possible downtime - and whether your site is 
approaching the point where you need a load-balanced farm of servers and 
possibly redundant sites.


The easiest plan with the least to go wrong is probably to use RAID1 
mirrored/swappable drives with a spare chassis, and also do nightly 
backups.  The most likely failure will be a disk drive, handled 
transparently by the mirror until you can replace it.  Next most likely 
would be the power supply/motherboard which you handle by swapping the 
disks to your spare with a small amount of downtime.  Next would be an 
operator or software error that erases or corrupts your disks.  For that 
you have to restore from your last backup with a much longer downtime.


You can keep the spare server in sync with DRBD and fail over 
automatically with heartbeat at the expense of more complexity but you 
still need backups for the error scenaro.


  
attachment: john.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best way to backup and entire machine??

2009-09-18 Thread nate
John Plemons wrote:
 The web machine uses a PHP shopping cart running atop MySQL, all of the
 main and important information is kept as a part of the MySQL DB.  So
 the main thing I would want to mirror is the application and the DB.
 I'm a surplus dealer, so hardware isn't a big issue, I have extra
 servers that can be up in a couple of hours without any big layout of money.
 I'm just looking for the best way to keep down time to a minimum and as
 always to KISS, Keep It Simple Stupid.  Simple to manage, simple to
 maintain...

Use rsync for the PHP files and read up on setting up mysql
replication, endless howtos and stuff out there for doing
that. Keep the slave db server in read-only mode until you
need to fail over to it, flip the read-only bit and restart,
off you go..

nate


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos