Restoring with the script (restore.pl)

To restore, boot from the backup-CD.
If you can't boot from CD, create a bootable floppy disk with the following command:
dd if=</cdrom/>boot/bootdisk.img of=/dev/fd0
Replace </cdrom/> with the mountpoint of your backup-CD and insert an empty floppy disk in the first floppy drive. Of course you can also make a  bootable floppy disk with the CD Backup Linux configuration tool . (You hopefully did this, before your system crashed!)
Since the boot-CD is usually used to automatically create backups, you have to stop this automatically started process first. It's process-Id will be shown at the screen. So, type something like:
kill 43
where you replace '43' with the correct PID.
You then are in CD Backup Linux, which runs completely in your RAM.

Restoring with the script is especially thought for splitted backup. You can also restore backups, which fited on one CD, with the script, but this might be easier doing it  manually . Don't expect any gui, when it comes to restoring. It's just a question and answering game. Here we go:


CDBL> /usr/cdbl/restore.pl

*** CDBL restoring script ***
NO WARRANTY ! If you use this program, you could lose data.
See helprestore.txt for more informations.
Press Ctrl-C to abort at any time.

If you give wrong answers in this game, you could overwrite an existing harddisk partition, which might result in lost of data. It may also be possible, that the restoring script has bugs... Do everything at your own risk. To abort the script you can press Conrtrol and C at any time.

Please insert your backup-CD and
enter the device-path of your CD-ROM [/dev/scd0] :

Select the path of your CD-ROM device, where you have inserted the backup-CD, you want to testore from. '/dev/scd0' is the default (the first SCSI-CD-ROM).

Backup made 01.01.1999 12:00
Which partition do you want to restore?
hda1 hda3 hdb1 sda1

You can see, when the backup was made. Select one of the proposed partitions (the may be different on your backup). The listed partitions are all partitions which were backed up at that time. Maybe some of them are on another CD. If this is so, you will be asked to insert the right CD afterwards.

fdisk-line of backup:
/dev/sda1            1        1      116   118768   83  Linux native
Enter the partition-name, where you want to restore the backup to (e.g. 'sda1')
or enter one or several harddisk-names (e.g. 'hda sda') to see a list
of it's partitions:

Ok, in this example I've selected 'sda1'. The fdisk-line which is shown, was made as the partition was backed up. It gives you informations about how big the partition is and of which filesystem type it is. Then you are asked to enter either one partition name or one or several harddisk names. If you enter the name of a partition (with a number in it's name), the actaul fdisk-line of that partition will be shown. E.g.:

Your partition:
/dev/sda1            1        1      116   118768   83  Linux native

Otherwise, when you enter one (several) harddisk name(s), you will see the partition table of that (those) harddisk(s). E.g.:

Your harddisk(s):
/dev/hda1            1        1       10     2780   83  Linux native
/dev/hda2           11       11      943   261240    6  DOS 16-bit >=32M
...
/dev/sda1            1        1      116   118768   83  Linux native
Please enter the name of the partition to restore to (e.g. 'sda1'):

You hopefully now can decide to which partition you want to restore the selected backup to. Enter it's name.

Sure [N]?

This is the last chance to abort. If you answer 'N', the question-answering game starts again at the question, where you were asked: 'Enter the partition-name, where you want to restore the backup to ...?'. So, if you said 'Y', the restoring process begins directly, if it's a backup type 'dd'. If its type is 'tgz' you will have the possibility to format the destination partition before:

Should the partition be (re-)formated first (all data will be deleted) [N] ?

The partition, where you want to restore the backup to should be correctly formated. If this is not the case (or if you want to delete existing files), say 'Y' to this question.

Which filesystem type (ext2, FAT or FAT32 ) [ext2] ?

For a Linux-partition select 'ext2' for a Windows-partition FAT or FAT32.
Afterwards, the destination partition will be formated and finally also the tgz-backup will be resotred to that partition.

Create initial boot-CD    Index    Restoring manually