Solved

Backup CentOS production server

Posted on 2013-01-08
4
729 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux/Apache File Ownership/Permissions 1 64
awk sed variable in file 3 39
ignore other .htaccess 2 45
Run Secure WMI query from CentOS 5 33
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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…
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…

803 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