Bell 32V development
[unix-history] / usr / man / man1 / restor.1m
CommitLineData
38946242
TL
1.TH RESTOR 1M
2.SH NAME
3restor \- incremental file system restore
4.SH SYNOPSIS
5.I restor
6key [ argument ... ]
7.SH DESCRIPTION
8.I Restor
9is used to read magtapes dumped with the
10.I dump
11command.
12The
13.I key
14specifies what is to be done.
15.I Key
16is one of the characters
17.B rRxt
18optionally combined with
19.BR f .
20.TP
21.B f
22Use the first
23.I argument
24as the name of the tape instead
25of the default.
26.TP
27.B r or R
28The tape
29is read and loaded into the file system
30specified in
31.I argument.
32This should not be done lightly (see below).
33If the key is
34.B R
35.I restor
36asks which tape of a multi volume set to start on.
37This allows restor to be interrupted and then
38restarted (an
39.I icheck \-s must be done before restart).
40.TP
41.B x
42Each file on the
43tape named by an
44.I argument
45is extracted.
46The file extracted is placed in a file with a numeric name
47supplied by
48.I restor
49(actually the inode number).
50In order to keep the amount of tape read to a minimum,
51the following procedure is recommended:
52.sp
53Mount volume 1 of the set of dump tapes.
54.sp
55Type the
56.I restor
57command.
58.sp
59.I Restor
60will announce whether or not it found the files,
61give the number it will name the file, and rewind the tape.
62.sp
63It then
64asks you to `mount the desired tape volume'.
65Type the number of the volume you choose.
66On a
67multivolume dump the recommended procedure is to mount the
68last through the first volume in that order.
69.I Restor
70checks to see if any of the files requested are on the
71mounted tape (or a later tape, thus the reverse order) and doesn't
72read through the tape if no files are.
73If you are working with a single volume dump or the number of files
74being restored is large, respond to the query with `1' and
75.I restor
76will read the tapes in sequential order.
77.sp
78If you have a hierarchy to restore you can use dumpdir(1)
79to produce the list of names and a shell script to move
80the resulting files to their homes.
81.TP
82.B t
83Print the date the tape was written and the date
84the filesystem was dumped from.
85.PP
86The
87.B r
88option should only be used to restore
89a complete dump tape onto a clear file system
90or to restore an incremental dump tape onto this.
91Thus
92.PP
93 /etc/mkfs /dev/rp0 40600
94.br
95 restor r /dev/rp0
96.PP
97is a typical sequence to restore a complete dump.
98Another
99.I restor
100can be done to get an incremental dump
101in on top of this.
102.PP
103A
104.I dump
105followed by a
106.I mkfs
107and a
108.I restor
109is used to
110change the size of a file system.
111.SH FILES
112default tape unit varies with installation
113.br
114rst*
115.SH "SEE ALSO"
116dump(1), mkfs(1), dumpdir(1)
117.SH DIAGNOSTICS
118There are various diagnostics
119involved with reading the tape and writing the disk.
120There are also diagnostics if the i-list or the free list
121of the file system is not large enough to hold the dump.
122.PP
123If the dump extends over more than one tape,
124it may ask you to change tapes.
125Reply with a new-line when the next tape has been mounted.
126.SH BUGS
127There is redundant information on the tape
128that could be used in case of tape reading problems.
129Unfortunately,
130.I restor
131doesn't use it.