[Next] [Previous] [Up] [Top] [Contents]

16.3 Backup and Restore Commands

16.3.6 cpio

cpio copies files in and out of a cpio archive. The Solaris 2.X packages on the install CDROM are compressed cpio archives. To examine one of these packages:

# zcat file | cpio -idumB

where the cpio options indicate:

i copy in

d create directories as needed

u copy unconditionally, even replacing newer files of the same name

m retain modification times

B block I/O 5120 bytes/record

t list the table of contents of the input file

You can create your own cpio archives with cpio. cpio reads and writes to stdin and stdout, respectively.

Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]