Solved

Backup CentOS production server

Posted on 2013-01-08
4
717 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
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
Aaron Tomosky earned 500 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 38

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now