1*74eb0f65Swiz.\" $NetBSD: tcopy.1,v 1.9 2005/06/28 07:55:12 wiz Exp $ 251207773Sjtc.\" 351207773Sjtc.\" Copyright (c) 1985, 1990, 1991, 1993 451207773Sjtc.\" The Regents of the University of California. All rights reserved. 5dab5e017Scgd.\" 6dab5e017Scgd.\" Redistribution and use in source and binary forms, with or without 7dab5e017Scgd.\" modification, are permitted provided that the following conditions 8dab5e017Scgd.\" are met: 9dab5e017Scgd.\" 1. Redistributions of source code must retain the above copyright 10dab5e017Scgd.\" notice, this list of conditions and the following disclaimer. 11dab5e017Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 12dab5e017Scgd.\" notice, this list of conditions and the following disclaimer in the 13dab5e017Scgd.\" documentation and/or other materials provided with the distribution. 1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors 15dab5e017Scgd.\" may be used to endorse or promote products derived from this software 16dab5e017Scgd.\" without specific prior written permission. 17dab5e017Scgd.\" 18dab5e017Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19dab5e017Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20dab5e017Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21dab5e017Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22dab5e017Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23dab5e017Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24dab5e017Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25dab5e017Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26dab5e017Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27dab5e017Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28dab5e017Scgd.\" SUCH DAMAGE. 29dab5e017Scgd.\" 3051207773Sjtc.\" @(#)tcopy.1 8.2 (Berkeley) 4/17/94 31dab5e017Scgd.\" 3251207773Sjtc.Dd April 17, 1994 33dab5e017Scgd.Dt TCOPY 1 349e44e9b5Sgarbled.Os 35dab5e017Scgd.Sh NAME 36dab5e017Scgd.Nm tcopy 37dab5e017Scgd.Nd copy and/or verify mag tapes 38dab5e017Scgd.Sh SYNOPSIS 39b1bc45d1Slukem.Nm 4051207773Sjtc.Op Fl cvx 41dab5e017Scgd.Op Fl s Ar maxblk 42dab5e017Scgd.Oo Ar src Op Ar dest 43dab5e017Scgd.Oc 44dab5e017Scgd.Sh DESCRIPTION 45b1bc45d1Slukem.Nm 46be8ae688Sgrantis designed to copy magnetic tapes. 47be8ae688SgrantThe only assumption made 48dab5e017Scgdabout the tape is that there are two tape marks at the end. 49b1bc45d1Slukem.Nm 50dab5e017Scgdwith only a source tape 51b65e7b7fSlukem.Pf ( Ar /dev/rst0 52dab5e017Scgdby default) specified will print 53be8ae688Sgrantinformation about the sizes of records and tape files. 54be8ae688SgrantIf a destination 55be8ae688Sgrantis specified a copy will be made of the source tape. 56be8ae688SgrantThe blocking on the 57be8ae688Sgrantdestination tape will be identical to that used on the source tape. 58be8ae688SgrantCopying 59dab5e017Scgda tape will yield the same output as if just printing the sizes. 60dab5e017Scgd.Pp 61dab5e017ScgdOptions: 62dab5e017Scgd.Bl -tag -width s_maxblk 63dab5e017Scgd.It Fl c 64dab5e017ScgdCopy 65dab5e017Scgd.Ar src 66dab5e017Scgdto 67dab5e017Scgd.Ar dest 68dab5e017Scgdand then verify that the two tapes are identical. 69dab5e017Scgd.It Fl s Ar maxblk 70dab5e017ScgdSpecify a maximum block size, 71dab5e017Scgd.Ar maxblk . 72dab5e017Scgd.It Fl v 73dab5e017ScgdGiven the two tapes, 74*74eb0f65Swiz.Ar src 75dab5e017Scgdand 76dab5e017Scgd.Ar dest 77dab5e017Scgdverify that they are identical. 7851207773Sjtc.It Fl x 7951207773SjtcOutput all informational messages to the standard error. 8051207773SjtcThis option is useful when 8151207773Sjtc.Ar dest 8251207773Sjtcis 8351207773Sjtc.Pa /dev/stdout . 84dab5e017Scgd.El 85dab5e017Scgd.Sh SEE ALSO 86dab5e017Scgd.Xr mtio 4 87dab5e017Scgd.Sh HISTORY 88dab5e017ScgdThe 89dab5e017Scgd.Nm 90dab5e017Scgdcommand appeared in 91dab5e017Scgd.Bx 4.3 . 92