cpio(1) | cpio(1) |
NAME
cpio - copy ®le archives in and out; duplicate directory trees
SYNOPSIS
cpio
cpio
cpio
DESCRIPTION
The cpio command saves and restores archives of ®les on magnetic tape, other devices, or a regular ®le, and copies ®les from one directory to another while replicating the directory tree structure. When cpio completes processing the ®les, it reports the number of blocks written.
cpio | (copy out, export) | Read standard input to obtain a list of path names, and copy those ®les to | |
|
| standard output together with path name and status information. The output is padded to a | |
|
| ||
cpio | (copy in, import) | Extract ®les from standard input, which is assumed to be the result of a pre- | |
|
| vious cpio |
|
If pattern..., is speci®ed, only the ®les with names that match a pattern according to the rules of Pattern Matching Notation (see regexp(5)) are selected. A leading ! on a pattern indicates that only those names that do not match the remainder of the pattern should be selected. Multiple patterns can be speci®ed. The patterns are additive. If no pattern is speci®ed, the default is * (select all ®les). See the f option, as well.
Extracted ®les are conditionally created and copied into the current directory tree, as determined by the options described below. The permissions of the ®les match the permissions of the original ®les when the archive was created by cpio
cpio
With the
Options
cpio recognizes the following options, which can be appended as appropriate to
aReset access times of input ®les after they are copied.
bSwap both bytes and
cWrite or read header information in ASCII character form for portability.
dCreate directories as needed.
Speci®es the handling of any extent attributes of the ®le(s) to be archived or copied. extarg takes one of the following values.
warn Archive or copy the ®le and issue a warning message if extent attributes cannot be preserved.
ignore Do not issue a warning message even if extent attributes cannot be preserved. force Any ®le(s) with extent attributes will not be archived and a warning message
will be issued.
When using the
− 1 − | Section 1−117 |
c