Re: Want to clone/make backup cds for FC3 working system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Vian wrote:
On Sun, 2005-05-08 at 21:44 -0700, Rick Lim wrote:

I want to either clone or make a "ghost" style image on cdr to copy a
working system to a new disk.

From searching it appears that Norton ghost cannot do FC3, I tried g4l and
it seems to have problems with LVM, mondo/mindi does not work with FC3.

Any suggestions????


A current version of Mondo does work with FC3. I and others use it regularly.
Some years ago (about the time of Valhalla, maybe earlier) I took a look at the source code of mondo & mindi and saw lots of security problems - they stood out like dog's jewels.

The principal author didn't care, said it is "a disaster recovery tool," not "a backup tool."

Probably, there is some discussion of those concerns on one of the RH lists of the time.

More recently, I took a fresh look. It's much improved, but there are still some serious problems.

Basically, the problems I saw fall into the category "doesn't check user-supplied data."

It is capable of segfaulting through buffer overruns and probably also has problems with bad shell characters (such as ";", "&") and so on.

_I_ won't use it.

There is also DAR which can be found at sf.net.

I have my own script which creates a compessed ISO image using sfdisk, tar, mkzftree and mkisofs.


#!/bin/bash -xe
[ -d /mnt/backup ] || mkdir /mnt/backup
Image=/var/tmp/backup.img
umount /mnt/backup || :
rm -fr ${Image} /var/tmp/backup
dd if=/dev/zero of=${Image} count=0 bs=1024 \
seek=$((3*1024*1024))
ls -shog ${Image}
mke2fs -Fq ${Image}
mount -o loop ${Image} /mnt/backup/
sfdisk >/etc/disktab -d /dev/hda
tar clC / --exclude=backup.img --exclude=/tmp --exclude=/mnt\/* --exclude=/var/lock --exclude=swapfil\* \
--exclude=/var/autofs --exclude=lost+found --exclude=/var/tmp --exclude=/var/local --exclude=squid-cache \
/ /boot /home /var \
| buffer -m $((2*1024*1024)) -p 75\
| tar xpC /mnt/backup
ls -go /mnt/backup
rm ${Image}
mkzftree --one-filesystem /mnt/backup/ /var/tmp/backup
umount /mnt/backup/
mkisofs -R -z -quiet -nobak -o /var/tmp/backup-${HOSTNAME}.iso /var/tmp/backup
rm -rf /var/tmp/backup
ls -hog /var/tmp/backup*
scp -p /var/tmp/backup-${HOSTNAME}.iso backup.office.lan:/var/local/backups



Note that I create a filesystem image (to overcome limitations in mkzftree) and delete it before I've finished with it (to overcome limitations in mkzftree).




--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux