Annotation of src/usr.bin/tcopy/tcopy.1, Revision 1.8
1.8 ! aaron 1: .\" $OpenBSD: tcopy.1,v 1.7 2000/03/11 21:40:04 aaron Exp $
1.3 millert 2: .\" $NetBSD: tcopy.1,v 1.4 1997/04/15 07:23:07 lukem Exp $
1.1 deraadt 3: .\"
4: .\" Copyright (c) 1985, 1990, 1991, 1993
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by the University of
18: .\" California, Berkeley and its contributors.
19: .\" 4. Neither the name of the University nor the names of its contributors
20: .\" may be used to endorse or promote products derived from this software
21: .\" without specific prior written permission.
22: .\"
23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33: .\" SUCH DAMAGE.
34: .\"
35: .\" @(#)tcopy.1 8.2 (Berkeley) 4/17/94
36: .\"
37: .Dd April 17, 1994
38: .Dt TCOPY 1
1.5 aaron 39: .Os
1.1 deraadt 40: .Sh NAME
41: .Nm tcopy
42: .Nd copy and/or verify mag tapes
43: .Sh SYNOPSIS
44: .Nm tcopy
45: .Op Fl cvx
46: .Op Fl s Ar maxblk
47: .Oo Ar src Op Ar dest
48: .Oc
49: .Sh DESCRIPTION
1.7 aaron 50: .Nm
51: is designed to copy magnetic tapes.
52: The only assumption made
1.1 deraadt 53: about the tape is that there are two tape marks at the end.
1.7 aaron 54: .Nm
1.1 deraadt 55: with only a source tape
1.3 millert 56: .Pf ( Ar /dev/rst0
1.1 deraadt 57: by default) specified will print
1.7 aaron 58: information about the sizes of records and tape files.
59: If a destination
60: is specified a copy will be made of the source tape.
61: The blocking on the
62: destination tape will be identical to that used on the source tape.
63: Copying a tape will yield the same output as if just printing the sizes.
1.1 deraadt 64: .Pp
1.6 aaron 65: The options are as follows:
1.8 ! aaron 66: .Bl -tag -width Ds
1.1 deraadt 67: .It Fl c
68: Copy
69: .Ar src
70: to
71: .Ar dest
72: and then verify that the two tapes are identical.
73: .It Fl s Ar maxblk
74: Specify a maximum block size,
75: .Ar maxblk .
76: .It Fl v
77: Given the two tapes,
1.4 aaron 78: .Ar src
1.1 deraadt 79: and
1.4 aaron 80: .Ar dest ,
1.1 deraadt 81: verify that they are identical.
82: .It Fl x
83: Output all informational messages to the standard error.
84: This option is useful when
85: .Ar dest
86: is
87: .Pa /dev/stdout .
88: .El
89: .Sh SEE ALSO
90: .Xr mtio 4
91: .Sh HISTORY
92: The
93: .Nm
94: command appeared in
95: .Bx 4.3 .