[Next] [Up] [Previous] [Contents] [Index]
Next: A.2.4 Restore a system Up: A.2 How can I...? Previous: A.2.2 Exclude a directory

A.2.3 Restore my files manually?

Well, that is fairly simple. To restore from a tape, you can do this (assuming that `` /dev/tape'' is a link to your tape device):

First you have to `` cd'' to the directoy to where you want to restore the files. Then:

mt rewind                # to rewind your tape
cat /dev/tape            # this will show you the archive header
cat /dev/tape >/dev/null # this will skips the contents directory

Depending on whether you used  AFIOor  TARformat, do one of the following (using double buffering and decompression):

multibuf -r -h /dev/tape | dd obs=4096k | afio -i -vzZk - # for AFIO
multibuf -r -h /dev/tape | dd obs=4096k | tar -xzvf -     # for TAR
The options for  afio(1)and  tar(1)depend on whether you used compression or not. See their manpages for details.

For floppy disks, using  afio(1)is rather simple, just type:

afio -i -vF -s 1440 -G /dev/fd0H1440
For higher capacity floppy formats, you need to adjust the numbers; without compression, drop the ``-G'' option.

For mountable block devices, this is tricky. You can restore them manually. It goes like this:

multibuf -r -h -F -c ``...'' -C ``...'' /mnt/Archive | afio -i -vzZ -
The arguments to the ``-c'' and ``-C'' must be set to mount and unmount the volume at `` /mnt'', for example like this: -c ``umount /mnt ; echo Next Volume...; read '' -C ``mount /dev/fd0 /mnt -t minix''


[Next] [Up] [Previous] [Contents] [Index]
Next: A.2.4 Restore a system Up: A.2 How can I...? Previous: A.2.2 Exclude a directory

KBackup development
Sun Oct 6 19:36:33 MET DST 1996