LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2009, 08:02 AM   #1
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Rep: Reputation: 31
Backup software questions


Here is what I want to do. I'd love to be able to backup my RAID array to my exernal HD. I am currently using rsnapshot to backup important files and directories to my external drive that I constantly work with on a regular basis. However, rsnapshot is not meant for "backing up" an entire system should the worst happen.

I've looked into Clonezilla, but that requires a live CD to run. My sever is in a production environment and its not possible to take it offline for that period of time daily to do the clone. I'm looking for a program that I don't have to run from a live CD that will "clone" or copy my current disk image to my external drive. That way, should something horrible happen, I could install a new RAID array and then copy the image from my external drive over to the new array.

I would think that with a current disk image clone AND rsnapshot keeping up other important files up to date, it would take a fire or hurricane to do me in.
 
Old 06-25-2009, 08:39 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
This one should be perfect for what you want.
http://www.mondorescue.org/

It's backups your data and if you like to creates a set of CD to recreate the system from bare metal.

Cheers Zhjim
 
Old 06-25-2009, 07:23 PM   #3
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by zhjim View Post
This one should be perfect for what you want.
http://www.mondorescue.org/

It's backups your data and if you like to creates a set of CD to recreate the system from bare metal.

Cheers Zhjim
I'll check it out. Thanks!
 
Old 06-25-2009, 07:46 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I use rsync.

It makes a complete copy of my hard disk ex /proc and /sys directory. When my hard disk crashes, I install a new disk, run a live CD, copy the files back, make the new drive bootable, and that is it.

Have I done it often? Making the back-up yes restoring, no. But I often started with an empty system, did an rsync from the original to the new system and followed the sequence as outlined. And that was succesful.

jlinkels
 
Old 06-26-2009, 05:15 AM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
rsync is one fine tool for backups, but it just does not take care of the parition table and filesystem infos.
Might be nice if there would be a tool that would extract thouse data...
 
Old 06-26-2009, 06:09 AM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Those are easy to extract with a few lines of shell script, and they don't change very often. I typically have a periodic script that copies those to a backup file in /etc and also print them out and keep them in a paper file along with backup tapes and recovery CD's.
 
Old 06-26-2009, 07:31 AM   #7
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Yeah, that is what I really CAN'T use rsnapshot for. I can do like jlinkles suggested and have rsnapshot backup up everything (sans /proc & /sys) but I still need the ability to copy the MBR (I guess dd would be fine for that) and then partition info, etc...

I don't know enough about how those things work to be able to figure out what exactly I need.
 
Old 06-26-2009, 07:59 AM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by choogendyk View Post
Those are easy to extract with a few lines of shell script, and they don't change very often. I typically have a periodic script that copies those to a backup file in /etc and also print them out and keep them in a paper file along with backup tapes and recovery CD's.

Hm can you provide some of these scripts?

The mbr should be good with
Code:
dd if=/dev/hda of=/root/mbr.hda bs=512 count=1
but how do you get the partition table and the filesystem infos? Would it be enough to get the superblock of an ext3 for example?
 
Old 06-26-2009, 09:18 AM   #9
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
WAIT!

When you copy the first 512 bytes you don't just copy the MBR but the partition table also. I believe the MBR is the first 416 bytes or so, but look that up in Wiki.

Copying the partition table is only allowed when the disk are identical.

Creating partitions is done with fdisk in batch mode, followed by a mkfs which also runs in batch mode.

jlinkels
 
Old 06-26-2009, 09:15 PM   #10
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Sounds like jlinkels is getting at it. Unfortunately, my scripts have been in Solaris. So it would take me some time to figure out specific details for linux.
 
Old 06-29-2009, 02:59 AM   #11
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by jlinkels
WAIT!
When you copy the first 512 bytes you don't just copy the MBR but the partition table also. I believe the MBR is the first 416 bytes or so, but look that up in Wiki.
jlinkels
Absolute right. I assumed rebuilding the same disk. But while thinking about data reocvery that is sure not a think to depend on.

Just for the records the partition table start at 446 and ends on 510 followed by the magic bytes 55AA.

So I would just save all of the 512 bytes and when using a new disk for recover would put the mbr back with this

Code:
dd if=/home/you/saved.mbr of=/dev/hda bs=446 count=1
But while reading up on the mbr part of wikipedia there some other stuff to consider. Specially the disk signature (byte 440 - 443). But that only would matter if you still have the old disk somewhere in the system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup questions d1l2w3 Mandriva 3 07-14-2008 12:53 AM
Linux backup software and drive mirroring software csross Linux - Software 1 12-26-2007 06:59 PM
New backup software fills huge open source software gap! gacott Linux - News 0 12-26-2007 02:57 PM
backup questions it_slut Linux - Newbie 2 01-10-2005 04:52 AM
Backup questions. cottonmouth Linux - General 1 11-21-2002 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration