LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-18-2008, 11:51 AM   #1
ritec
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
Migrating all my Data from one server to another in order to clone it...


So I have two servers that are almost identical. I would like to set up a backupserver in case something happens to my production server. I proceeded to dd the harddrive on my production server into a portable usb drive and now I would like to pass all that data back to my backup web server.

What would be the best way of doing this?

should I just dd from the usb drive to the regular harddrive using a liveCD?


also how would I go about setting up the fstab?

---------------------(my usb drive)------------------
Disk /dev/sda: 255 heads, 63 sectors, 30401 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 83 Linux
------------------------------------------------------

Disk /dev/hda: 255 heads, 63 sectors, 4866 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6 48163+ 83 Linux
/dev/hda2 7 3167 25390732+ 83 Linux
/dev/hda3 3168 3330 1309297+ 82 Linux swap
/dev/hda4 3331 4866 12337920 f Win95 Ext'd (LBA)
/dev/hda5 3331 4784 11679223+ 83 Linux
/dev/hda6 4785 4833 393561 83 Linux
/dev/hda7 4834 4866 265041 83 Linux


---------------------------------------------------------------------

One more thing, while using dd to pass all my data to the usb drive I encountered a couple transmission problems such as:

[root@internal init.d]# dd if=/dev/hda5 of=/dev/sda1
dd: writing to `/dev/sda1': Input/output error
129+0 records in
128+0 records out

Will this have a negative effect on my backup?


Thanks a lot!!
 
Old 11-18-2008, 01:05 PM   #2
popowich
Member
 
Registered: Nov 2004
Location: Rochester, New York
Distribution: RHEL7
Posts: 53

Rep: Reputation: 15
Hello,

Do the two servers have connectivity to each other?

If so try taking a look at "man rsync" and use rsync to backup the files to the backup server.

Rsync will allow you to automate the process and not worry about CD's and/or usb drives.

-Raymond
 
Old 11-18-2008, 02:24 PM   #3
ritec
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
I did take a look at rsync but I was trying to clone the server itself that is why I took the dd route.
 
  


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
Can dd be used to clone just the data on a partition ? uncle-c Linux - Newbie 15 10-29-2007 06:57 PM
Migrating MySQL Data stranger_6_7 Linux - General 1 08-17-2007 09:51 AM
Migrating from Clone RH9 to xSeries RH9 noelcantona Linux - General 3 02-20-2005 05:24 AM
Need help Migrating Data Between HD's involving Different OS's ZingSter SUSE / openSUSE 2 02-18-2005 10:36 AM
Migrating data and settings between distros or machines kainhart Linux - General 0 07-01-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:43 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