Simple disk to disk copy for easy recovery after drive failure

I have a rented server at a hosting company.  If the mother board dies they will replace it.  If the disk dies they will replace that too.  What they won't replace is all the work that I have done to configure it.

I am interested in suggested solutions to a means of fairly rapid recovery after a catastrophic drive failure that requires a new drive.  

I thought that the simplest solution maybe a second disk to which I make an image copy on a regular basis, or better still update the image incrementally, periodically.  I can stick a second drive on the server for very little money.

Does this make sense as a solution or is there a better one?  Also, if this is the solution, then what software should I use to generate my backup?

I would like to add to this the ability to have a similar backup HERE, over the network.  This way if I needed a major move I could do that too.
LVL 8
jhurstAsked:
Who is Participating?
 
SwassLikeMeConnect With a Mentor Commented:
This totally depends on the amount of data we're talking about and the monthly allocated bandwidth you have with your hosting company.  Usually they consider backups to be part of the monthly transfer you have allocated to your account.

I would go with a second drive.  It will save you a lot of headaches.  That said, you'd still want a backup of your data locally (prior to publishing to the website).  If it fails, you can always copy your data back.

What type of access are you given to your webserver?
0
 
rindiCommented:
DD or partimage, which is included on most LiveCD's would be good tools for that, but you'd need someone at the place where the server is to run either. Of course you can also run DD from your distro, but the partitions shouldn't be mounted, so again you'd require someone there to do it.

A good backup tool which will backup mounted partitions is rsync, but here you'd have to wait until the server is reinstalled, then restore your data.

http://samba.anu.edu.au/rsync/
0
 
jhurstAuthor Commented:
Swass... - I have complete access to the server.  It is sort of mine.  Root, etc.  You are indeed correct that if I backup across the net it will use some of my bandwidth, as it happens that would be fine if only incremental.  But this is why I thought of the second disk.

So the question remains for you, if the disk is the way to go.  What software and will it be easy to restore/backdown if needed.

rindi - if I go the rsync way will I be able to back down even everything.  Right now I have: / and /boot in use.   Is what you are saying:
1) backup / using rsync

After a failure
1) get the host company to install a new drive and get the OS on there
2) restore /

Is it really as simple as that?  If so GREAT!
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
SwassLikeMeCommented:
If you have a second disk, I would look at doing mirroring rather than simply using it as a second, independent disk.  Potentially you could have an issue that would require costly intervention from them if they were not mirrored, as you'd be really unable to boot from a simple backup disk.  Mirroring is accomplished by software RAID in Linux, or by hardware RAID if they actually have a hardware RAID controller in the system.

If you did want to send your data across the wire to your home/business system for backup purposes, I would recommend using something like rsync.  You can set this up securely, and have it do incremental block level changes, rather than shipping everything across the wire each time.

That said, in the case of doing the rsync with the RAID option also, I would not recommend doing your whole system, but only selective data that you changed.  The hardware or software RAID would give you the ability to keep a running system, where rsync would backup your data in case it was lost.

One potential issue with rsync is that it is a synchronized copy of the data remotely.  Consequently, making a change to a file in production and performing an rsync could cause your old file to be wiped out.  You could, however, do a backup of the rsync'd data locally on your workstation for archival purposes.
0
 
jhurstAuthor Commented:
I am aware of rsync, should have mentioned that.  Already use it for the data on the server.

Now, I am liking this software raid idea.  Are you saying that we can actually use this to have a bootable disk ready to go and we would just need them to swap it in an we would bre ready to re-boot?  If so, this is EXACTLY what I want.

0
 
PUNKYConnect With a Mentor Commented:
Raid is not backup solution. You should have backup to external media, in daily basic backup data, and keep them in safe place for any event that cause system failure.
0
 
jhurstAuthor Commented:
I realize that Raid is not a backup solution - that is not what I am looking for.  As I said, I am already backing up this server using rsync to a machine that is here.  I am looking for a way that we can recover as quickly as possible after a disk crash, as the question says.  Why does RAID not achieve this punky?
0
 
PUNKYCommented:
Oh, sorry I misread your posts, as you already know raid is not backup solution, and have backup using rsync, then Raid would be good for you plan. It will help to keep system running while one drive failed.
0
 
jhurstAuthor Commented:
So, how tough is it to add software raid to my existing machine if I stick another drive on there?
0
 
PUNKYCommented:
It is not tough but depending how your experience on Linux / Fedora. Only you can figure that out on your own system, I can only suggest and provide help links such as below though.

http://www.tldp.org/HOWTO/Software-RAID-HOWTO-7.html#ss7.6
0
 
SwassLikeMeCommented:
Punky is spot on, that'll do it for you.  Whoever you give credit for the answer, be sure to credit the other(s) with assists.  He certainly more quickly responded to your follow-up than I did.
0
 
jhurstAuthor Commented:
These guys are GREAT!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.