GNU tarでシンボリックリンクのタイムスタンプが保存されない - 1.24以降ならOK
GNU tar 1.24以降であれば、タイムスタンプが保存されるようである。 http://git.savannah.gnu.org/cgit/tar.git/plain/NEWS?id=release_1_24 ** Symbolic link attributes When extracting symbolic links, tar now restores attributes such as last-modified time and link permissions, if the operating system supports this. For example, recent versions of the Linux kernel support setting times on symlinks, and some BSD kernels also support symlink permissions. Debian squeeze のtarは1.23である。 ktaka@hana:~$ tar --version tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. タイムスタンプがApr 1 00:00のシンボリックリンクを作成。 ktaka@hana:~$ mkdir p ktaka@hana:~$ for i in a b c d e f g ; do ln -s /tmp/$i p/$i; touch -ht 04010000 p/$i ; done ktaka@hana:~$ ls -la p total 8 drwxr-xr-x 2 ktaka ktaka 4096 Apr 8 03:03 . ...