Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-27-2006, 10:43 AM
|
#1
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Rep:
|
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.
|
|
|
09-27-2006, 06:27 PM
|
#2
|
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
|
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.
|
|
|
09-27-2006, 09:13 PM
|
#3
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Original Poster
Rep:
|
I have a spare drive, but it's bigger, will that work?
|
|
|
09-27-2006, 10:17 PM
|
#4
|
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
|
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.
|
|
|
09-28-2006, 07:30 AM
|
#5
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Original Poster
Rep:
|
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.
|
|
|
09-28-2006, 07:42 AM
|
#6
|
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
|
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.
|
|
|
09-28-2006, 09:32 AM
|
#7
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Original Poster
Rep:
|
That's a good idea, I don't really need partition information. I am going to try some tests with it.
Thanks again Konsolebox
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|