SCO has enhanced the cpio(C) command to be able to deal with
these situations. The enhanced version of cpio(C) is available in:
SCO UNIX System V/386 Release 3.2 Version 2.0
Open Desktop
In addition, this version of cpio(C) is available as part of a
Support Level Supplement (SLS). If you have SCO XENIX 386
Operating System Release 2.3, you should install SLS xnx155.
The enchanced cpio(C) is not available for other releases of SCO
XENIX.
**** NOTE:
Support Level Supplement xnx155 is now Obsolete. ****
**** This supplement is no longer available through SCO ****
If you have the enhanced version of cpio(C), you can use it to
partially recover the data on corrupted tapes, and to prevent tape
errors from occuring. The two new options that allow you to do
this are the "-k" option and the "-K" option.
You can use the "-K" option of the enhanced cpio(C) to successfully
create backups which span multiple tape volumes. This option is used
to specify, in 1K blocks, the size of the media on which you are
backing up. Always give a size slightly smaller than the actual size
of the media which you are using. For example, to back up your root
file system using cpio(C) and a 60 megabyte cartridge tape, enter
the command:
# find / -mount -print | cpio -omcv -C 10240 -K 59000 -O /dev/rct0
If you use the "-K" option, cpio(C) will prompt you for the next
tape volume after you have written the specified amount to the
tape device.
You can use the "-k" option of the enhanced cpio(C) to recover some
of the data on the second tape of a garbled multi-tape backup. This
flag tells cpio(C) to scan the tape looking for the next cpio
header. Once it finds a file header, cpio(C) will begin extracting
files starting with the current file. The data on the tape before
the first recognized cpio header is still unaccessble, but the
remaining data can be extracted. If you are trying to extract a
multi-volume cpio archive created with the old version of cpio(C),
you will not be able to completely extract the file which spans the
two tapes: the portion of this file on the second tape will not be
extracted.
NOTE:
If the tape you are extracting contains files which are
themselves cpio-format files, the results of using the "-k" option
are unpredictable.
|