LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-25-2009, 06:33 PM   #1
3087jeh
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Question I am looking for a good way to backup my server operating system


I have been running Linux mint as a file and print server for about 4 months. I finally have it running perfect and I am looking for the best method to restore to the current condition if my hard drive fails.I have duplicated the drive using the "dd" command but can't get the duplicated drive to boot. After the boot menu I get an error because the boot sequence has references to the original drive. I copied a Maxtor drive to a segate and at boot up it continues to look for the Maxtor drive. I would appreciate any help in solving this problem, I am also open to a better method of backing up the system and settings. I am very comfortable with the DOS command line but know very little about Linux command line, but I am not afraid to learn. THANKS
 
Old 09-25-2009, 06:48 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The boot system doesn't look for any specific drive, definitely it doesn't care about seagate vs. maxtor.

However it does care about the naming of the drives, both the naming of the drives in grub.conf and /etc/fstab will need to be adjusted if the name of the drives change (hda vs. sda, hda vs. hdb or whatever).

Personally, I wouldn't bother with dd. Either use tar, rsync or wahtever fits you. Oh, and don't forget that if you make live backups (while the disk is being written to and changed) you risk getting an useless backup. You should mount the drives read-only before doing backups.

ps. Unless you have lvm (or an fs that can do live snapshots, which is unlikely in linux).

Last edited by i92guboj; 09-25-2009 at 06:54 PM.
 
Old 09-25-2009, 08:33 PM   #3
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 241

Rep: Reputation: 50
Depending on what you want to do, you may be interested in looking at something like Clonezilla (http://clonezilla.org/

Last edited by ArfaSmif; 09-25-2009 at 08:33 PM. Reason: fix typo
 
Old 09-26-2009, 12:42 AM   #4
saifkhan123
Member
 
Registered: Apr 2009
Distribution: Red Hat/CentOS
Posts: 108

Rep: Reputation: 19
Virtualization

use VMs and have fun backing up your servers and restoring them with ease, try VMware Esxi,
 
Old 09-26-2009, 01:46 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
I would personally first remove the machine from the network if it is serving as a server so that clients are not requesting anything. And then would make sure it is not in use as said so that it is not writing to system files. And then use clonezilla or something similar (if you have one with license) to clone the drive by connecting one as primary and other as slave or secondary.
On your problem, it could have been caused if there are references to the UUID of your original drive that your OS is searching for. You will need to remove those if any.
 
Old 09-26-2009, 07:00 AM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
While a direct clone as above is a good idea, it's also probably a good idea to make a case of how could I build it from scratch in as little time as possible procedure too. Like recreating the configuration and re-installing the entire OS, just incase their is a problem with clone too. Just putting it out, also you can use rsync too what should be able to enable you to copy a large ammount of data.
 
Old 09-26-2009, 07:35 AM   #7
ilu_nishant
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 1
Hii

As my friend mentioned above. rsync is the best option I also recommend others for taking backups.
The rsync uses protocol which allows rsync to transfer just the differences between two sets of files across the network connection.
because of which it very fast too.

Cheerzz!!
 
Old 09-26-2009, 07:41 AM   #8
3087jeh
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for all of the comments, all were helpful but it sounds like clonezilla may be the best answer. I am continuing to discover those nuggets of gold like clonezilla. I will continue to try to boot the drive copied with dd, (just for fun)
 
  


Reply

Tags
backup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 12:02 PM
Unix server operating system nency.jariwala Linux - Server 9 10-20-2007 06:18 AM
Using rsync to backup system. Good or bad? antis Linux - General 7 09-15-2007 01:13 PM
Backup of Operating System maga2724 Linux - Server 5 05-21-2007 03:47 PM
Operating system on RAID - good idea or bad? BrianK Linux - General 4 05-07-2007 02:01 PM


All times are GMT -5. The time now is 03:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration