1TP(1) General Commands Manual TP(1)
2
3
4
6 tp - manipulate tape archive
7
9 tp [ key ] [ name ... ]
10
12 Tp saves and restores files on DECtape or magtape. Its actions are
13 controlled by the key argument. The key is a string of characters con‐
14 taining at most one function letter and possibly one or more function
15 modifiers. Other arguments to the command are file or directory names
16 specifying which files are to be dumped, restored, or listed. In all
17 cases, appearance of a directory name refers to the files and (recur‐
18 sively) subdirectories of that directory.
19
20 The function portion of the key is specified by one of the following
21 letters:
22
23 r The named files are written on the tape. If files with the
24 same names already exist, they are replaced. `Same' is deter‐
25 mined by string comparison, so `./abc' can never be the same as
26 `/usr/dmr/abc' even if `/usr/dmr' is the current directory. If
27 no file argument is given, `.' is the default.
28
29 u updates the tape. u is like r, but a file is replaced only if
30 its modification date is later than the date stored on the
31 tape; that is to say, if it has changed since it was dumped. u
32 is the default command if none is given.
33
34 d deletes the named files from the tape. At least one name argu‐
35 ment must be given. This function is not permitted on mag‐
36 tapes.
37
38 x extracts the named files from the tape to the file system. The
39 owner and mode are restored. If no file argument is given, the
40 entire contents of the tape are extracted.
41
42 t lists the names of the specified files. If no file argument is
43 given, the entire contents of the tape is listed.
44
45 The following characters may be used in addition to the letter which
46 selects the function desired.
47
48 m Specifies magtape as opposed to DECtape.
49
50 0,...,7 This modifier selects the drive on which the tape is mounted.
51 For DECtape, x is default; for magtape `0' is the default.
52
53 v Normally tp does its work silently. The v (verbose) option
54 causes it to type the name of each file it treats preceded by
55 the function letter. With the t function, v gives more
56 information about the tape entries than just the name.
57
58 c means a fresh dump is being created; the tape directory is
59 cleared before beginning. Usable only with r and u. This
60 option is assumed with magtape since it is impossible to
61 selectively overwrite magtape.
62
63 i Errors reading and writing the tape are noted, but no action
64 is taken. Normally, errors cause a return to the command
65 level.
66
67 f Use the first named file, rather than a tape, as the archive.
68 This option currently acts like m; i.e. r implies c, and
69 neither d nor u are permitted.
70
71 w causes tp to pause before treating each file, type the
72 indicative letter and the file name (as with v) and await the
73 user's response. Response y means `yes', so the file is
74 treated. Null response means `no', and the file does not
75 take part in whatever is being done. Response x means
76 `exit'; the tp command terminates immediately. In the x
77 function, files previously asked about have been extracted
78 already. With r, u, and d no change has been made to the
79 tape.
80
82 /dev/tap?
83 /dev/rmt?
84
86 ar(1), tar(1)
87
89 Several; the non-obvious one is `Phase error', which means the file
90 changed after it was selected for dumping but before it was dumped.
91
93 A single file with several links to it is treated like several files.
94
95 Binary-coded control information makes magnetic tapes written by tp
96 difficult to carry to other machines; tar(1) avoids the problem.
97
98
99
1007th Edition April 29, 1985 TP(1)