|
|
coherent
cpio Command cpio
Archiving/backup utility
ccppiioo -oo[BBaaccvv]
ccppiioo -ii[BBccddffmmrrttuuvv] [_p_a_t_t_e_r_n...]
ccppiioo -pp[aaddllmmrruuvv] _d_i_r_e_c_t_o_r_y
ccppiioo is an archiving utility that reads and writes files in the
format specified by the ccppiioo AArrcchhiivvee/IInntteerrcchhaannggee FFiillee FFoorrmmaatt
specified in IEEE standard 1003.1-1988.
***** Options *****
ccppiioo recognizes the following command-line options:
-aa Reset the access times of input files after they have been
copied. When the -ll option is also specified, the linked
files do not have their access times reset. Can be used
only with the -oo or -ii options.
-BB Change the size of a block. Input/output is to be blocked
5,120 bytes to the record. This option can be used only
with the -oo or -ii options, for data directed to or from
character-special files.
-cc Write header information in ASCII characters for
portability. Can be used only with the -ii or -oo options.
-dd Creates directories as needed. Can be used only with the -ii
or -pp options.
-ff Copy all files except those in whose names match a _p_a_t_t_e_r_n.
Can be used only with the -ii option.
-ii In. Read the standard input, which it assumes to be an
archive that had been created with the -oo option to ccppiioo.
Copy all files within the archive whose names match a
_p_a_t_t_e_r_n into the current directory (default, all files).
-ll Whenever possible, link files rather than copying them. Can
be used only with the -pp option.
-mm Retain previous modification times. This option is
ineffective on directories that are being copied. Can be
used only with the -ii or -pp options.
-oo Out. Copy all files whose names match a _p_a_t_t_e_r_n (default,
all files) into an archive written to standard output.
-pp Pass mode. This option causes ccppiioo to read standard input
for a list of file names to copy to destination _d_i_r_e_c_t_o_r_y.
This mode of operation is similar in functionality to
command ccppddiirr, with the added ability to specify individual
file names via standard input.
COHERENT Lexicon Page 1
cpio Command cpio
-rr Interactively rename files. Before it copies a file, ccppiioo
asks you to rename the file. If you type just <rreettuurrnn>,
ccppiioo skips the file. Should be used only with the -ii or -oo
options.
-tt Print a table of contents of an existing archive; do not
copy files from the archive. Can be used only with the -ii
option.
-uu Copy files unconditionally. Usually an older file will not
replace a new file with the same name. Can be used only
with the -ii or -pp options.
-vv Verbose option: print the names of all affected files. Can
be used only with the -ii option. Provides a detailed
listing when used with the -tt option.
***** Operands *****
The following operands are available:
_p_a_t_t_e_r_n
This names the files to be manipulated by ccppiioo. This can be
a simple regular expression.
_d_i_r_e_c_t_o_r_y
The destination directory.
***** Multi-Volume Operation *****
ccppiioo supports multi-volume backups and restoration when using the
``raw'' (i.e., character-special) floppy device. If a ccppiioo
archive exceeds the size of one floppy diskette, ccppiioo will issue
a prompt of the form:
Ready for volume 2
Type "device/name" when ready to proceed ...
Remove the first diskette and insert the next logical diskette.
Enter the name of the floppy device, e.g. /ddeevv/rrffhhaa00 or
/ddeevv/rrffvvaa11, and press <EEnntteerr>. Please note well that multi-volume
operation requires the raw floppy device and the use of pre-
formatted floppy diskettes.
***** Examples *****
The following command copies all files and directories listed by
the command ffiinndd and copies them into the archive nneewwffiillee.ccppiioo:
COHERENT Lexicon Page 2
cpio Command cpio
find . -print | cpio -oc > ../newfile.cpio
The following command reads the ccppiioo archive nneewwffiillee.ccppiioo and
extracts all files whose names match the patterns mmeemmoo/aall or
mmeemmoo/bb*:
cpio -icdv "memo/al" "memo/b*" <../newfile.cpio
Note that the -dd option forces ccppiioo to create the sub-directory
mmeemmoo and write the files into it. Otherwise, the files would
have been written into the current directory. Option -vv causes
ccppiioo to display each file name as it is extracted from the
archive.
The following commands perform a multi-volume backup of all files
on mounted filesystem /vv to the character-special (i.e., ``raw'')
floppy device /ddeevv/rrffhhaa00:
su root
cd /v
find . -print | cpio -ocv >/dev/rfha0
If the ccppiioo archive exceeds one diskette, you will be prompted to
insert another formatted diskette.
***** See Also *****
ccoommmmaannddss, dduummpp, ppaaxx, ttaarr, uussttaarr
***** Notes *****
ccppiioo has the following restrictions:
-> Path names are restricted to 256 characters.
-> You must have appropriate privileges to copy special files.
-> Blocks are reported in 512-byte quantities.
ccppiioo was developed by Mark H. Colburn and sponsored by The
USENIX Association. Copyright (c) 1989 by Mark H. Colburn
([email protected]). All rights reserved. See the compressed
ttaarr archive /uussrr/ssrrcc/aalliieenn/ppaaxx.ttaarr.ZZ for full descriptions of
copyright, restrictions, and licensing terms.
ccppiioo is provided in binary form per the licensing terms set forth
by the author. It is distributed as a service to COHERENT
customers, as is. It is not supported by Mark Williams Company.
_C_a_v_e_a_t _u_t_i_l_i_t_o_r.
COHERENT Lexicon Page 3
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.