LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2007, 09:24 AM   #1
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Rep: Reputation: 15
System Recovery


Hi all,
Am not sure if this list is the right one to ask my question, I apologize if not.

Is there any way in Linux to make a full backup for the hole OS (files and system image) so in case the system crashed I can boot from it, like make_tape_recovery in HP-UX???

Regards
Mhm
 
Old 06-14-2007, 10:03 AM   #2
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
I don't know if this is what you're thinking of but, you can make an image of the entire of the disc/partition you boot from/have your documents stored on using dd.

Tutorial here:
http://www.linuxquestions.org/questi...d.php?t=362506

* realizes it's been three months since I last backed up anything, goes to backup.*

Last edited by hacker supreme; 06-14-2007 at 10:04 AM.
 
Old 06-16-2007, 03:20 AM   #3
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Original Poster
Rep: Reputation: 15
Hi,
Thanx alot about your help...
Iread your post and its really interesting things about dd command, but what i meant is a way of creating an image on tape to use if the system crash to boot from and to get the system back to its normal state. Is there any thing like that in linux environment???

Regards
MHM
 
Old 06-16-2007, 03:31 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
well it's also fair to remember that the dd command is, well can be, quite complicated.

During my recent hard drive failure, I found that even though I thought I'd got it right (the dd command I issued, that is), to mirror one hard drive to another, the new device wouldn't boot as the dd I'd used hadn't copied all of the boot stuff - when I managed to get the original hdd to boot, I could access all the stuff on the new drive, and it was as far as I could tell, the same, but something was missing from the boot process.

In the end, I just swapped back over to the new hdd, and then did a re-install, but told the installer not to touch the /home partition. This worked fine so I left it at that.

It might be as good a suggestion for you to check out the abilities of the tar command mhm, so that you can make the backups that way as well. It might mean that you had to make backups of the system and data seperately but then again, as long as the most often changed data is kept up to date surely the aim is no too loose anything, or at least as little as possible.

I don't know about you mhm, but I feel that it's my personal data that I value the most as it's what takes the longest to replace if everything "goes to a sack of sh1t".

S'up to you my friend.

regards

John
 
Old 06-18-2007, 08:08 AM   #5
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Original Poster
Rep: Reputation: 15
Hi Bigjohn,
how r u friend?

Thanx for your help man, good way to work around and do the backup...

Regards
Mhm
 
Old 06-18-2007, 08:17 AM   #6
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
I have also looked for a utility like AIX's 'makesysb' which dumps the OS to a tape and makes it bootable. This makes it very easy to gen a new system with the same hardware or rebuild a server which has failed for one reason or another.
I have not found a utility that works similar in Linux (for Red Hat in particular).
 
Old 06-18-2007, 09:31 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You could also switch all your filesystems, including /, to RAID-1. Then you'd always have an up-to-date bootable backup.
 
Old 06-19-2007, 01:36 AM   #8
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Original Poster
Rep: Reputation: 15
Hi Berhanie,

Most of the systems I'd work with is raid 1, how can I do the bootable backup????

Regards
Mhm
 
Old 06-19-2007, 11:28 AM   #9
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
Most of the systems I'd work with is raid 1, how can I do the bootable backup????
You write the boot loader to the MBR of the raid device, which can be done with lilo using the following lilo.conf:
Code:
boot = /dev/md0
raid-extra-boot = mbr-only
image = /boot/vmlinuz
  root = /dev/md0
  label = Linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
Also, make sure your BIOS is set to boot from the second drive of the RAID1 pair, in case the first one fails.

I'm assuming we're talking about software raid, by the way.

Last edited by Berhanie; 06-19-2007 at 11:31 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System recovery to different hardware eagarg Linux - General 2 01-07-2005 12:11 PM
Quick System Recovery 1kyle Linux - Software 7 03-08-2004 09:12 PM
What do I need for system recovery? downinthemine Linux - Software 3 12-04-2003 10:50 PM
System Recovery CD racertech Linux - Newbie 3 08-06-2003 02:05 PM
System Recovery Nezar Linux - General 3 07-04-2001 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:51 AM.

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