LNEXT
BOTCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
PAUSE2
q - to quit, <CR> - to continue
GO
The restore utility is used to restore the files backed
up with the backup utility.
Remember that the format of the backup volumes is not the
same as that of tar or cpio archiving utilities!
Under most recent UNIX systems, the restore option is included
in the system administrator's menu. However, restor/restore
may be executed as a separate command as well.
The restore utility permits you to restore
single files, directories, and entire file systems!
You must be certain where the restored files
will go, i.e., into which file system.
The restore utility whose command syntax is:
restore key [arguments]
has several options, some of which are shown above.
restore options:
f - Uses the argument as the name of the archive
instead of the default, i.e., if the default
backup device is /dev/rfdk2 and you are
actually restoring from the device /dev/rfdk3,
then a part of the command would take the form:
restore -f /dev/rfkd3.
x - Each file on the archive named by an argument
will be extracted. The filename has all
"mount" prefixes removed, e.g.: If /u is
a mounted file system, the file /u/cti/sample
is named /cti/sample on the archive!
r,R - The archive is read and loaded into the
file system specified in the argument. If
the key is R, restore will ask you which
archive of a multivolume set to start on.
This allows restore to be interrupted
and then restarted (an fsck must be done
before the restart). For example:
restore -r /dev/u2 -f /dev/rfdisk
says that the files from the device /dev/rfdisk
are to be restored/loaded into the file system
/dev/u2.
Now let us practice using the
restore command by typing the
command to restore the files from
the default backup archive into
the file system /dev/a2.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type restor -r /dev/a2
Please type restor -r /dev/a2
You will be helped this time!
$PROMPT$
FORGET1
restore -r /dev/a2
$PROMPT$
Now please type the command to restore
the file list3 from the default
archive device into the file system
/dev/u2.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please enter
restore -x list3 -r /dev/u2
Please enter
restore -x list3 -r /dev/u2
You will be helped this time!
FORGET3
restore -x list3 -r /dev/u2
$PROMPT$
Please note that the sysadmin
utility permits you to restore
single files using an interactive
menu facility by selecting
choice 4 in the above menu.
File System Maintenance
----------------------------------
Type 1 to do daily backup
2 to do a periodic backup
3 to get a backup listing
4 to restore a file
5 to quit
AROUND:
The command to restore a file with the pathname of
/usr/CTI/admin/7sa
from the archive on the device /dev/fd0 is
from the archive on the device /dev/rst is
restor fx /dev/fd0 /usr/CTI/admin/7sa
restor fx /dev/rst /usr/CTI/admin/7sa
Please note that often the restore program does not restore the
file's original name. Instead the restored file is given a
unique number called an inode number. You should restore
the file's original name by renaming the file with the mv
command, e.g., mv 5309 /usr/CTI/admin/7sa
Let us practice using the restore
command by trying to restore the file
/bin/quest of the archive on the
device /dev/fd0
device /dev/rst
Please type the necessary
command at the prompt.
$PROMPT$
OVER
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please enter
restore -fx /dev/fd0 /bin/quest
Please enter
restore -fx /dev/fd0 /bin/quest
You will be helped this time!
FORGET4
restore -fx /dev/fd0 /bin/quest
At this point the 1st volume
should be mounted. The restore
program will prompt you with:
Please mount desired volume.
Specify volume no.
Mount the 1st volume. From the header information the restore
program will decide which volume is the desired file, and will
prompt you accordingly. This is not true for all UNIX systems,
so mount (if you know) the volume on which the desired file resides.