Restoring manually
The first steps (booting) see at Restoring
with the script .
tgz
Use the common tar-command to restore. Example:
tar -xzf </cdrom/sda1.tgz.1> -C </mnt>
Replace </cdrom/sda1.tgz.1> with path and filename of your backup
file and </mnt> with the mountpoint of the partition to resotre to (which
should have a correct filesystem on it and for this example (restoring
the whole partition not only several files) be empty).
dd
To restore, use the following commands:
gzip -dc </cdrom/sda1.dd.gz> | dd of=</dev/sda1>
Replace </cdrom/sda1.dd.gz> with the path and filename of your backup
file and </dev/sda1> with the partition, you want to restore. Be sure,
that the partition is not mounted when you restore.
Splitted backups
If the backup is splitted on several CD-ROMs, use commands like the following
examples:
cat /cdrom/sda1.tgz.1 /cdrom2/sda1.tgz.2 | tar -xz -C /mnt
cat /cdrom/sda1.dd.1 /cdrom2/sda1.dd.2 | gzip -dc | dd of=/dev/sda1
The disadvantage of restoring manually is, that you can't switch the
CD during restoring. So in this case for a splitted backup up, you either
need as much CD-ROM devices as splits or you have to copy all the backup-splits
on a temporary harddisk partition and then to restore from there.
Other comands, which might be usefull:
-
fdisk
Inspect, create or delete partitions on your harddisk(s). Start it
the following way:
fdisk </dev/sda>
where you replace </dev/sda> with the device-path of any of your
harddisks. To get further informations type 'm' after you've started it.
-
mke2fs
Create an ext2 filesystem on a partition. Start it the following way:
mke2fs </dev/sda1>
where you replace </dev/sda> with the device-path of your partition.
-
mkfs.msdos
Create a FAT filesystem on a partition (DOS-freaks: this is 'format').
mkfs.msdos </dev/sda1>
where you replace </dev/sda> with the device-path of your partition.
-
e2fsck
Check (and maybe correct) a filesystem (recommended after restoring).
Use the '-f' option. Example:
e2fsck -f </dev/sda1>
where you replace </dev/sda> with the device-path of the partition,
you want to check.
Restoring with the script
Index
Credits