LNEXT
BOTCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q to quit <CR> to continue
GO
The UNIX utility restore is used to restore the files backed
up with the utility backup or dump.
It is important to keep in mind that the format of the backup
volumes is not the same as that of tar or cpio archiving
utilities.
Under some systems, the restore option is included in the
System Administrator's menu. However, 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 syntax for the command is:
restore options [filename(s)]
There are many options, some of which are shown above:
restore options:
f - Uses the argument as the name of the device 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 the command could 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 entire 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 (you must check the file
system with fsck 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 all 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
restore -r /dev/a2
Please type
restore -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
restore fx /dev/fd0 /usr/CTI/admin/7sa
restore 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 from the archive on
/dev/fd0
/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
Please enter
restore -fx /dev/rst /bin/quest
Please enter
restore -fx /dev/rst /bin/quest
You will be helped this time!
FORGET4
restore -fx /dev/fd0 /bin/quest
restore -fx /dev/rst /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 determine the correct
volume and will prompt you accord-
ingly. This is not true for all UNIX
systems, so mount the volume on
which the desired file resides.
Please mount volume 3:
$PROMPT$