Solved

Backup CentOS production server

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

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 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
awk variable in printf 1 34
Intel fortran compiler (ifort) 5 38
Linux FTP Error 5 34
Disabling security updates Ubuntu 3 31
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
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…

828 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