t-copy

t-copy


t-chk Index Level t-det
Syntax t-copy source.device dest.device {file.count}
Category TCL
Type Verb
Description Copies data from one device to another.

file.count  specifies number of file segments to copy.  Default is 1 file segment.  For instance, a file in "t-dump" format is written on tape as 1 file segment.  A file-save or account-save on tape is written as 2 file segments, plus 1 file segment for each account.  Therefore, to copy up to the first account of a save, you would specify a file.count of 3; to copy the first two accounts, specify a file.count of 4; etc.
Options
See Also t-dump set-device save
Example :who
15 dm dm

:list-device
Tape        Status           17 Jan 1996  11:46:41      
#   Type             Density           Owner   Device Name   
-------------------------------------------------------------
0 | Floppy         | 3 1/2" 1.44M    |  15*+ | /dev/rpdsk/2
1 | Floppy         | 5 1/4" 1.2M     |       | /dev/rpdsk/3   
2 | Quarter Inch   | High            |  15*  | /dev/rmt/0n   

:t-copy 0 2 3

This will copy the contents of device 0 to device 2, up to the 3rd EOF mark.  If device 0 contains data in "save" format, this will copy the first account on tape.

:t-copy 0 2

This will copy up to the 1st EOF mark (default file.count is 1).  In this case, if device 0 contains data in "t-dump" format, this will copy the t-dump from device 0 to device 2.
Warnings Both source and destination devices must be attached to the current process.
Compatibility
t-chk Index Level t-det