?
Solved

Backup CentOS production server

Posted on 2013-01-08
4
Medium Priority
?
739 Views
Last Modified: 2013-01-23
What is an appropriate way to make backups of a production server running CentOS?

The server is essentially a web host - it runs cPanel WHM, it has Apache, MySQL, Exim Mail and a handful of other services running on it. There is some special configuration done in cPanel for some of the user's web spaces (some of them have their permissions tweaked so they can talk to each other).

All we have in place right now is automysqlbackup for the databases... which isn't much.

Ideally we'd like to be able to restore on a file-by-file basis, but also we need a disaster recovery strategy to restore if the entire server goes down (e.g. the RAID array fails, datacenter goes down or something else disasterous happens)

It would be really nice to have the ability to "roll back" the production server a few hours in the event that we accidentally break it somehow (for example, upgrade cPanel and the upgrade fails, now we need to roll back somehow).

Since it is a production server... there obviously can be zero downtime but we can handle a bit of performance degradation in the middle of the night.

What's a good way to accomplish this?
0
Comment
Question by:Frosty555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
Aaron Tomosky earned 2000 total points
ID: 38759314
I use a more complex version of this:
http://bnsmb.de/solaris/How%20to%20use%20ZFS%20and%20rsync%20to%20create%20a%20backup%20solution%20with%20versioning.html
By running a zfs storage you get snapshots. So all you do is periodically use rsync, then make a snapshot and there is your versioning. While building a small zfs box is outside the scope of the question, I'd be happy to get into It more if you want. Start with zfsguru.com
Easy enough to get started and stable enough for large production systems.
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 38766085
Also get a test box and test drive Symantec System Recovery Linux Edition.

I use it for Windows - I have not tested it on Linux yet, next week maybe when I get a chance.
0
 
LVL 31

Author Comment

by:Frosty555
ID: 38811506
ZFS seems like the way to go. I'm not sure if this is feasable for us at this point because the server is already live and I don't know if we can take it down for long enough to change the filesystem around... but good advice.
0
 
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 38811872
The whole rsync/zfs snapshots is a new way of looking at backups. I for one have gone forward and only use traditional backup software for workstations, and even that can be changed when I have time.
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question