Copying Data Utilizing CPIO
When copying data from one directory to another, the best way to perform this is by utilizing the “cpio” command. cpio, with the proper options, will provide the retention of the original file creation date, ownership, and permissions. The following is an example utilizing “cpio” with the proper options.
Change into the directory you wish to copy (i.e. cd /source_dir) and type the following:
find `ls`|cpio -pduxvmc /dest_dir