1. First, login in to cortex as
su, and use the command (to check the tape number that has the last level
0 of that file system):
/usr/local/amanda/sbin/amadmin biomed find machine disk
For example to check when the last level 0 dump
of /home/reflex was done you would issue this command:
# /usr/local/amanda/sbin/amadmin reklab find reflex rz2h
Here is a list of all of the file systems and the disk names:
Cortex:
Hankle:
Funsan:
2. Write protect the tape and put it in the drive.
3. Cd to /var/restore. Make sure after the files have been restored and moved to the persons home dir to delete the dir that is created by the restore procedure so that the file system will not get filled up.
4. mt -f /dev/nrmt0h rewind to rewind the tape to the begining.
5. To restore files you have three options -
a. For small save sets, you can simply restore the entire dumpfile using:
amrestore -r /dev/nrmt0h hostname filename
which creates a file of the form hostname._filesystem.date.level in the current directory. Then you can use vrestore interactively:
vrestore -if hostname._filesystem.date.level
b. For bigger files, you need to either restore the compressed dumpfile and use vrestore -x at the end of a pipe from zcat, or restore from the tape directly. The -x (extract) option of vrestore does work with pipes, but has the disadvantage of requiring the filename and exact full path.
c. For the compressed dumpfile option, cd to a scratch directory (e.g., /var/restore) and do
amrestore -c /dev/nrmt0 hostname filename
which creates a file with hostname._filesystem.date.level.gz as the name and then you can do:
zcat hostname._filesystem.date.level.gz | vrestore -xf - path_to_file
or from the tape directly:
amrestore -p /dev/nrmt0h hostname filesystem | vrestore -xf - path_to_file
The last argument must be the file or files you want and the path must be specificied relative to the mount point: e.g., if you needed to restore a file (ffc100996a.flb) from /home/hankle/rob you need to use usr_hankle/rob/ffc100996a.flb -- note there is no leading "/".
If the restore procedure askes what volume you want to read tell it vol 1
d. How to restore files off of Hankle with the new Unix4 OS.
(i) Log into Hankle & cd to an appropriate dir:
(ii) Rewind the Tape:
# rsh -n cortex 'mt -f /dev/nrmt0h rewind'
(iii) Extract the file using:
# rsh -n cortex '/usr/local/bin/amrestore -p /dev/nrmt0h hostname /filesystem$' | /sbin/vrestore -xf - path_to_file)
(iv) An Example:
# rsh -n cortex '/usr/local/bin/amrestore -p /dev/nrmt0h hankle /usr$' | /sbin/vrestore -xf - usr_hankle/rob/mail)
6. Move or copy the file to the users dir (ask them first where they want it).
7. Delete the dir structure and file(s) within in /var/restore.