LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-27-2006, 10:43 AM   #1
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Going to upgrade FC4 to FC5 - How can I get a "GOOD" backup?


Hi all,

I want to upgrade my web server to Fc5 from Fc4. The upgrade process, is fairly smooth, but I have customers on this box for email and 4 websites.

I want to be able to roll back my changes if the need arises. What sort of backup do you recommend?

Any ideas would be appreciated.
 
Old 09-27-2006, 06:27 PM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
for systems with enough hd space, i always thought that copying the whole image of a partition is a good backup solution. this way you're sure you won't miss anything and also no more headaches thinking about what files to backup. you can use the dd command for this.
 
Old 09-27-2006, 09:13 PM   #3
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Original Poster
Rep: Reputation: 30
I have a spare drive, but it's bigger, will that work?
 
Old 09-27-2006, 10:17 PM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
yes i guess. for a big spare drive there are two ways i know.

(a) you can create an image file using dd. for example
Code:
dd if=/dev/hdaX of=/sparedrivepath/hdaX.fs
then mount the image as loop
Code:
mount /sparedrivepath/hdaX.fs /mnt/any -o loop
note that you must at least make sure that the filesystem on your spare drive supports large files and its enough to handle the size of the image. see http://en.wikipedia.org/wiki/Comparison_of_file_systems.

(b) this one's easier and more common - create a new partition on the spare drive with the same partition size then use dd. for example
Code:
dd if=/dev/hdaX of=/dev/hdbX
Edit:
Quote:
Originally Posted by lucktsm
I have a spare drive, but it's bigger, will that work?
Wait you mean the spare drive's bigger and not the partition to backup right?

Last edited by konsolebox; 09-27-2006 at 10:18 PM.
 
Old 09-28-2006, 07:30 AM   #5
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Original Poster
Rep: Reputation: 30
Correct. The spare drive is a local drive that is 300G the drive I want to back up is 100G. The only issues I can see is the fact that my 100G has 2 partitions /boot and /. The / is a logical volume default fedora core 4 setup.

Can I take the entire 100G and back it to the 300G? I don't need to save anything on the 300G drive. Both drive are ext3.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
114712996 10382028 98409792 10% /
/dev/hdc1 101086 14549 81318 16% /boot
/dev/shm 509516 0 509516 0% /dev/shm
/dev/hdd 307666384 217261396 74776428 75% /backup

Does the fact that the / partition is a logical volume group cause any problems for using dd to create an image?

I figured I would create a /boot image and then the / image. /backup will be my target, I am moving the backups off this drive to the network.


Thanks,
Joe

Last edited by lucktsm; 09-28-2006 at 07:35 AM.
 
Old 09-28-2006, 07:42 AM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
I'm not sure about copying the entire drive. You might not be able to mount that.

I suggest you just create 2 patitions on your 300G with the sizes as the partition in the 100G then dd them. Remember not to delete any data from your 100G drive until you're sure you've backuped the data properly.

I'm also thinking.. if the total size of files in your 100G is not really that big, perhaps lesser than 10G, why not just 'cp -a' or 'rsync' them to your new drive? i'm not sure about using rsync though.
 
Old 09-28-2006, 09:32 AM   #7
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Original Poster
Rep: Reputation: 30
That's a good idea, I don't really need partition information. I am going to try some tests with it.

Thanks again Konsolebox
 
  


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
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM
Is it possible to do an "in-place" upgrade from FC4 to FC5? ArchW Fedora 9 04-22-2006 04:24 AM
"yum -y upgrade" FC4->FC5 killed my machine! U4ea Fedora 1 04-20-2006 10:47 AM
System Kernel Panics, "Spin Lock On CPU0", both installed FC4 and FC5 installation cd genixpro Fedora 0 04-14-2006 06:48 PM
"Subjective" - How Smoothly Will Uprgrade From FC4 to FC5 Go? mrclisdue Fedora 5 03-22-2006 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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