LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 05-16-2005, 04:50 PM   #1
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: gentoo, fedora
Posts: 60

Rep: Reputation: 15
Partition Image backup options


Hi,

I'm running a Fedora 3 web/ftp/email server, with an identical mirrored machine (mirrors main machine with rsync).
However, I'm having some trouble finding something to create an exact hd image in case something very bad happens and I need to do a bare metal recovery.

Unfortunatly there are soo many dozens of backup tools, I don't really know what's best to use.

Ideally I'd like something that can run on the mirrored machine while the machine is running, and backup the whole hd either to cdr or to a windows share via samba. I don't know if linux will allow an entire partition copy while the os is running off of the same partition? If not, is there any kind of script that can reboot the machine on a schedule and boot to a special backup tool or something like that?

So to sum up my questions:
1. What's the best software to use to create a hd image (all partitions and even mbr if possible) while the OS is running?
2. If there are no tools which can do 1, are there any that can reboot the machine automatically and boot to a special partition/os/tool to backup the main partitions?

Backup would preferably compress and go to a cdr or dvdr. Alternatively over a running smb share to a windows partition (fat32 or ntfs available)

Thanks
 
Old 05-16-2005, 06:04 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Hello,


First I would not advise to create an image backup from a live system, use a live cd distro like kanotix to boot linux and create a image.
For this instruction to work you need an extra partition with free space to store the backup, about 70% of the space in use by the partition you want the backup.

Before you make an image of a partition run the following instruction
cd "locationpartition"
sudo dd if=/dev/zero of=emptyfile | rm emptyfile
(this wil force a smaller image file)

Now you can start making a image
cd "locationextrapartition"
sudo dd if=/dev/partition | gzip -c | sudo split -b 25m - backup.img.gz.
(this wil make compresses gzip file each 25Mb in size, you can burn them on a cd or dvd)

restoring the image with

cat backup.img.gz.* | gzip -dc | sudo dd of=/dev/partition
 
Old 05-16-2005, 06:26 PM   #3
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: gentoo, fedora
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for the reply.

However im looking for something a bit more robust than dd.
I'd like to have a program along the lines of norton ghost or pq drive image - doesn't need a gui or anything though.

Is there really no good/safe way to backup an actual partition (not just all the bits in a partition) while the partition is live?
I'm pretty sure partimage does this http://www.partimage.org/
But I'd like to know all the options and the best ones.

I know I could just backup the files in the partitions, take a new computer, create the partitions, then untar a backup into it - but I'd rather have a solution that does that all itself if possible.

Thanks again.
 
Old 05-16-2005, 09:27 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
http://www.rajeevnet.com/hacks_hints...s_cloning.html
 
  


Reply


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
How to Image/Backup a Software RAID Partition? SiegeX Slackware 6 02-24-2005 04:14 PM
Backup options jrdioko Linux - Software 2 11-28-2004 12:11 AM
backup options for Linux cbriscoejr Linux - Software 2 11-04-2004 05:26 PM
Backup Options? Snump Linux - Hardware 7 10-02-2004 09:34 PM
Server Backup Options? Rackemup Linux - General 4 05-24-2001 06:13 PM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
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