Research V4 development
[unix-history] / man / man1 / tp.1
CommitLineData
0462c67d
KT
1.th TP I 10/15/73
2.sh NAME
3tp \*- manipulate DECtape and magtape
4.sh SYNOPSIS
5.bd tp
6[ key ] [ name ... ]
7.sh DESCRIPTION
8.it Tp
9saves and restores selected portions of the file system
10hierarchy on DECtape or mag tape.
11Its actions are controlled by the
12.it key
13argument.
14The key is a string of characters containing
15at most one function letter and possibly
16one or more function modifiers.
17Other arguments to the command are file or directory
18names specifying which files are to be dumped, restored,
19or listed.
20.s3
21The function portion of
22the key is specified by one of the following letters:
23.s3
24.lp +8 4
25\fBr\fR The indicated files and directories, together with
26all subdirectories, are dumped
27onto the tape.
28If files with the same names
29already exist, they are replaced.
30`Same' is determined by string comparison, so
31`./abc' can never be the same as `/usr/dmr/abc' even
32if `/usr/dmr' is the current directory.
33If no file argument is given, `\fB.\fR' is the default.
34.s3
35.lp +8 4
36\fBu\fR updates the tape.
37.bd u
38is the same as
39.bd r,
40but a file is replaced only if its
41modification date is later than the date stored on the tape;
42that is to say, if it has changed since it was dumped.
43.bd u
44is the default command if none is given.
45.s3
46.lp +8 4
47\fBd\fR deletes the named files and directories from
48the tape. At least one file argument must be given.
49This function is not permitted on magtapes.
50.s3
51.lp +8 4
52\fBx\fR extracts the named files from the tape to the file system.
53The owner, mode, and date-modified are restored to what they
54were when the file was dumped.
55If no file argument is given, the entire contents of the
56tape are extracted.
57.s3
58.lp +8 4
59\fBt\fR lists the names of all files stored on the tape which
60are the same as or are hierarchically below
61the file arguments. If no file argument is given,
62the entire contents of the tape is listed.
63.s3
64.i0
65The following characters may be used in addition to the letter
66which selects the function desired.
67.s3
68.lp +10 6
69\fBm\fR Specifies magtape as opposed to DECtape.
70.s3
71.lp +10 6
72\fB0,...,7\fR This
73modifier selects the drive on which the tape is mounted.
74For DECtape, `x' is default; for magtape
75`0' is the default.
76.s3
77.lp +10 6
78\fBv\fR Normally
79.it tp
80does its work silently. The
81.bd v
82(verbose)
83option causes it to type the name of each file it treats
84preceded by the function letter.
85With the
86.bd t
87function,
88.bd v
89gives more information about the
90tape entries than just the name.
91.s3
92.lp +10 6
93\fBc\fR means a fresh dump is being created; the tape directory
94will be zeroed before beginning. Usable only with
95.bd r
96and
97.bd u.
98This option is assumed with magtape since
99it is impossible to selectively overwrite
100magtape.
101.s3
102.lp +10 6
103\fBf\fR causes new entries on tape to be `fake' in that
104no data is present for these entries.
105Such fake entries cannot be extracted.
106Usable only with
107.bd r
108and
109.bd u.
110.s3
111.lp +10 6
112\fBi\fR Errors reading and writing the
113tape are noted, but no action is taken.
114Normally, errors cause a return to the command level.
115.s3
116.lp +10 6
117\fBw\fR causes
118.it tp
119to pause before treating each file, type
120the indicative letter and the file name (as with v)
121and await the user's response. Response
122.bd y
123means `yes', so the file is treated. Null response
124means `no', and the file does not take part
125in whatever is being done. Response
126.bd x
127means `exit';
128the
129.it tp
130command terminates immediately. In the
131.bd x
132function,
133files previously asked about
134have been extracted already.
135With
136.bd "r, u,"
137and
138.bd d
139no change has been made to the tape.
140.s3
141.i0
142.sh FILES
143/dev/tap?
144.br
145/dev/mt?
146.sh DIAGNOSTICS
147Several; the non-obvious one is
148`Phase error', which means the file changed after it was selected for
149dumping but before it was dumped.
150.sh BUGS