Dear elenezet
This information was given to me by another sme user and may be useful to you. (Thanks to Graeme R).
First make a temporary restore directory where the restore file(s) will
go. You will move them after the
restore to required ibay. This is necessary as the restore re-creates the
original file structure as well as
restoring the file, which gets confusing for users.
mkdir /var/tmp/restore
Now change to that directory.
cd /var/tmp/restore
Make sure the tape the files are on is inserted, then rewind the tape:
mt -f /dev/nst0 rewind
Now the tape has to be moved forward to where the file list can be read by
flexbackup:
mt -f /dev/nst0 fsf 1
flexbackup -restore
This 'restore' options starts up an interactive menu which allows you to
navigate using the usual commands
through the filesystem stored on the tape. When you locate the file(s)
you want to restore add them using
the add command. Add as many files as you want.
If you've done the above correctly you'll get something like the below
output. Note you can type help to get
a list of the interactive commands.
[root@av#### /root]# flexbackup -restore
flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK
|------------------------------------------------
| Reading from current tape position
|------------------------------------------------
At block 2.
|------------------------------------------------
| buffer -m 3m -s 10k -u 100 -t -p 75 -B -i /dev/nst0 | gzip -dq | restore
-i \
| -v -b 10 -f -
|------------------------------------------------
Verify tape and initialize maps
Dump date: Tue Feb 5 02:01:28 2002
Dumped from: the epxxx
Level 0 dump of / on avanti:/dev/hda6
Label: none
Extract directories from tape
Initialize symbol table.
restore > help
Available commands are:
ls [arg] - list directory
cd arg - change directory
pwd - print current directory
add [arg] - add arg' to list of files to be extracted
delete [arg] - delete arg' from list of files to be extracted
extract - extract requested files
setmodes - set modes of requested directories
quit - immediately exit program
what - list dump header information
verbose - toggle verbose flag (useful with ls'')
prompt - toggle the prompt display
help or ?' - print this list
If no arg' is supplied, the current directory is used
restore >
When you are ready and have added all the files you need restored issue
the 'restore' command. When
the restore is done you'll be prompted to save the files with their
orgiinal permissions.
Then moved the directories/files into the right place using mv.
eg.
mv /var/temp/restore/restored
/home/e-smith/files/ibays/data/files/originaldir
And finally, rewind and eject the tape:
mt -f /dev/nst0 rewoffl
Note:
- there is more than one way to restore a file (or do anything in linux
really). Using the interactive restore is
slower but I believe much easier for a beginner. Or maybe not, it's just
what I got a handle on first.
- restoring can take a long time, even for a few files.
- if you want more information study the man file.
Regards
Ray Mitchell