H.J.Bathoorn wrote:

On Thursday 27 February 2003 16:17, John Richard Smith wrote:


Harv Nelson wrote:


Hi

Is there some sort of backup/restore utility that I can use to make
backups using the CD-R on my machines? CD-R's cost about a dime each
these days. That price makes that media much more attractive than
investing in a big tape drive and tapes..

I've got 5 machines on my little network.  Each has a 20 gig HD (or less).
How about another machine with a couple 50 gig drives that would be used
just for backing up the others? That would cost about as much as the tape
drives and tapes.

Another strategy you'd care to suggest?

Thanks a bunch

Harv


Take a look at Gentoo it comes with partimage is a nice iso file
you download and write to CD, boot up on it, run it to prompt
and type partimage . When your've created the partition image
files you write then to CD and restore from them. I've just
learnt how to do it and it works, though I've only done it
with ext2 partition, the manual suggests it works with all file systems
but as I say I have only tested it so far with the one.

If anyone is interested I've written(for my own use) a help file.


John




I'm interested John.
I've got a 40Gb WDC disk that's giving probs once or twice a month.

I keep on telling myself to take the time to back it up before it goes.
It's the time I'm short on:o(
A nice help file like that would be just the push I need:o)

TIA,
HarM



OK , I attatch the file for everone

John

--
John Richard Smith
[EMAIL PROTECTED]


===============================================================================
                   GENTOO Bootdisk and backup with PARTIMAGE 
===============================================================================
                            21.02.2003  www.gentoo.org
                            ==========================
Gentoo is a CD bootdisc incorperating Partimage.

Download the ISO file from Partimage website and write to CD.
===================
Image file Creation
===================

boot up on Gentoo CD and run it to,

cdimage root]# passwd root
New UNIX password : xxxxxxx
again             : xxxxxxx
cdimage root# fsck /dev/hda6  (source directory)
cdimage root# fsck /dev/hda10 (destination directory)
cdimage root# mkdir /mnt/vol7
cdimage root# ls /mnt
cdrom,cloop,vol7
cdimage root# mount  /dev/hda10  /mnt/vol7
cdimage root# cd /mnt/vol7
cdimage vol7]# Partimage --nombr --username=root --password=XXXX --volume=700000
_____________________________________________
PARTITION IMAGE v 0.6.2
name of file  M90
spanned image size: 716800  ( 700mbx1024bytes)
F5 - enter description - OK - OK
|=======================================>100%|

Creates
M90.000  700mb
M90.001  489mb+

==========================
Restore OS from image file
==========================
The newly created files are writen to cd's and a spare
rom drive is required, I am using my cd writer.
To Gentoo the writer is /dev/hdd

boot up on Gentoo CD and run it two 

cdimage root# passwd root
New Unix password:XXXXXXX
again:xxxxxxx
cdimage root#cd /mnt
cdimage mnt#  mkdir cdrom2
cdimage mnt# mount /dev/hdd /mnt/cdrom2 (with CD1 in place)
cdimage mnt# ls cdrom2
M90.000
cdimage mnt# cd
cdimage root#partimage -S restore /dev/hda6 M90.000    (simulated)
             partimage    restore /dev/hda6 M90.000    ( for real )
____________________________________
Restore partition from image file
M9.0 on /dev/hda6 of 4.89gigs
21.02.2003
____________________________________
F5 to continue and OK
____________________________________
Ext2fs info  ----  OK
____________________________________
Restore partition from image file
| =================> 62%           |
____________________________________
Volume not found
cannot read the following volume file
/mnt/cdrom2/M90.001
enter another full pathe
____________________________________
instead do Alt + F2
cdimage login:root
password: XXXXXXX
cdimage root# umount /mnt/cdrom2
replace CD1, with CD2
cdimage root# mount /dev/hdd /mnt/cdrom2
M90.001
cdimage root#

then do Alt + F1,
___________________________________
Volume not found
type : /mnt/cdrom2/M90.001     OK
        
|=============================100%|
        
Reboot

==============================================================================
Note
====
if you want higher compression them call partimage with

partimage -z2  for bz file creation
default is-z1  for gz file creation

--nombr will not backup the mbr
==============================================================================
===============
list of options
===============
usage: partimage [options] <action> <device> <image_file>
       partimage <imginfo/restmbr> <image_file>
       
Options:
* -z,  --compress     (image file compression level):
  -z0, --compress=0   don't compress: very fast but very big image file
  -z1, --compress=1   compress using gzip: fast and small image file (default)
  -z2, --compress=2   (compress using bzip2: very slow and very small image file):
* -c,  --nocheck      don't check the partition before saving
* -o,  --overwrite    overwrite the existing image file without confirmation
* -d,  --nodesc       don't ask any description for the image file
* -V,  --volume       (split image into multiple volumes files)
  -VX, --volume=X     create volumes with a size of X KB
* -w,  --waitvol      wait for a confirmation after each volume change
* -e,  --erase        erase empty blocks on restore with zero bytes
* -m,  --allowmnt     don't fail if the partition is mounted. Dangerous !
* -M,  --nombr        don't create a backup of the MBR (Mast Boot Record) in the image 
file
* -h,  --help         show help
* -v,  --version      show version
* -i,  --compilinfo   show compilation options used
* -f,  --finish       (action to do if finished successfully):
  -f0, --finish=0     wait: don't make anything
  -f1, --finish=1     halt (power off) the computer
  -f2, --finish=2     reboot (restart the computer):
  -f3, --finish=3     quit
* -b,  --batch        batch mode: the GUI won't wait for an user action
* -y,  --nosync       don't synchronize the disks at the end of the operation 
(dangerous)
* -sX, --server=X     give partimaged server's ip address
* -pX, --port=X       give partimaged server's listening port
* -g,  --debug=X      set the debug level to X (default: 1):
* -n,  --nossl        disable SSL in network mode
* -S,  --simulate     simulation of restoration mode
* -aX, --automnt=X    Automatic mount with X options. Read the doc for more details
* -UX  --username=X   Username to authenticate to server
* -PX  --Password=X   Password for authentication of user to server

==============================================================================
=============================================
Write files to cd using mkisofs and  cdrecord
=============================================
cd /root/tmp

mkisofs -r -J -v -o temp.iso /mnt/<sourcedirector>

cdrecord -v speed=8 dev=0,1,0 -pad -data -eject -ignsize temp.iso
cdrecord -v speed=8 dev=0,2,0 -pad -data -eject -ignsize temp.iso
cdrecord -v speed=8 dev=0,3,0 -pad -data -eject -ignsize temp.iso
==============================================================================
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to