空じゃないディレクトリのmtimeが展開時の時刻になっちゃう。ファイルを作ったら親ディレクトリのmtimeが変わるのが原因と思うんだけど、元のmtimeを保持する方法はないんすかね?
# cpio --version cpio (GNU cpio) 2.9 # mkdir file_aruyo dir_aruyo nanimo_naiyo # touch file_aruyo/file_dayo # mkdir dir_aruyo/dir_dayo # touch -t 200609081130 file_aruyo dir_aruyo nanimo_naiyo # ls -l --full-time total 12K drwxr-xr-x 3 root root 4096 2006-09-08 11:30:00.000000000 +0900 dir_aruyo drwxr-xr-x 2 root root 4096 2006-09-08 11:30:00.000000000 +0900 file_aruyo drwxr-xr-x 2 root root 4096 2006-09-08 11:30:00.000000000 +0900 nanimo_naiyo # find . | cpio -o -H newc > ../x.cpio # cat ../x.cpio | cpio -tv drwxr-xr-x 5 root root 0 Dec 15 15:41 . drwxr-xr-x 3 root root 0 Sep 8 2006 dir_aruyo drwxr-xr-x 2 root root 0 Dec 15 15:41 dir_aruyo/dir_dayo drwxr-xr-x 2 root root 0 Sep 8 2006 nanimo_naiyo drwxr-xr-x 2 root root 0 Sep 8 2006 file_aruyo -rw-r--r-- 1 root root 0 Dec 15 15:42 file_aruyo/file_dayo 2 blocks # cat ../x.cpio | ( cd ../to && cpio -idm ) 2 blocks # ls -l --full-time ../to total 12K drwxr-xr-x 3 root root 4096 2008-12-15 15:45:08.000000000 +0900 dir_aruyo drwxr-xr-x 2 root root 4096 2008-12-15 15:45:08.000000000 +0900 file_aruyo drwxr-xr-x 2 root root 4096 2006-09-08 11:30:00.000000000 +0900 nanimo_naiyo