c

cpio(1)

cpio(1)

find . -depth -print cpio -oB >/dev/rmt/c0t0d0BEST

can be handled more ef®ciently by:

find . -cpio /dev/rmt/c0t0d0BEST

WARNINGS

Because of industry standards and interoperability goals, cpio does not support the archival of ®les larger than 2GB or ®les that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process.

Do not redirect the output of cpio to a named cpio archive ®le residing in the same directory as the original ®les belonging to that cpio archive. This can cause loss of data.

cpio strips any leading ./ characters in the list of ®lenames piped to it.

Path names are restricted to PATH_MAX characters (see <limits.h> and limits(5)). If there are too many unique linked ®les, the program runs out of memory to keep track of them. Thereafter, linking information is lost. Only users with appropriate privileges can copy special ®les.

cpio tapes written on HP machines with the -ox[c] options can sometimes mislead (non-HP) versions of cpio that do not support the x option. If a non-HP(or non-AT&T) version of cpio happens to be modi®ed so that the (HP) cpio recognizes it as a device special ®le, a spurious device ®le might be created.

If /dev/tty is not accessible, cpio issues a complaint and exits.

The -pdoption does not create the directory typed on the command line.

The -idroption does not make empty directories.

The -pluoption does not link ®les to existing ®les.

POSIX de®nes a ®le named TRAILER!!! as an end-of-archive marker. Consequently, if a ®le of that name is contained in a group of ®les being written by cpio -o, the ®le is interpreted as end-of-archive, and no remaining ®les are copied. The recommended practice is to avoid naming ®les anything that resembles an end-of-archive ®le name.

To create a POSIX-conforming cpio archive, the c option must be used. To read a POSIX-conforming cpio archive, the c option must be used and the b, s, S, and 6 options should not be used. If the user does not have appropriate privileges, the U option must also be used to get POSIX-conforming behavior when reading an archive. Users with appropriate privileges should not use this option to get POSIX-conforming behavior.

DEPENDENCIES

If the path given to cpio contains a symbolic link as the last element, this link is traversed and pathname resolution continues. cpio uses the symbolic link's target, rather than that of the link.

SEE ALSO

ar(1), ®nd(1), tar(1), cpio(4), acl(5), environ(5), lang(5), regexp(5).

STANDARDS CONFORMANCE cpio: SVID2, SVID3, XPG2, XPG3

Section 1120

− 4 −

HP-UX Release 11i: December 2000