On Thu, 10 Jul 2003, Paul wrote: > I need to preserve the file creation time when copying a > directory ie. > > cp -r dir1 dir2 > > I need dir2 to have the same file creation time as dir1
Does cp -rp not work? It normally should do the job, and it should be documented in the man page for cp... If this does not work, you can always read out the original time with ls, and then modify the time for the copied stuff with touch. Kind regards, Helmut Walle. +----------------+ | Helmut Walle | | [EMAIL PROTECTED] | | 03 - 388 39 54 | +----------------+
