cpio –i [ bBcdfkmrsStuvV6 ] [–C bufsize ] [–E filename ] [–H header ][–I filename [ –M message ] ] [ –R id ] [pattern …] cpio –o [ aABcLvV ] [ –C bufsize ] [ –H header ] [ –O filename [ –M message ] ] cpio –p [ adlLmuvV ] [ –R id ] directory
Copies file archives according to the modifiers given, usually for backup to a tape or directory.
find . -depth -print | cpio -pdmv /home/john/tmp
|
Explanation
Starting at the current directory, find descends the directory hierarchy, printing each of the entries of the directory even if the directory does not have write permission, and sends the filenames to cpio to be copied into the john/tmp directory in the /home partition.
3.16.75.165