Copy files to NFS directory loose time stamps
oldman
talbotscott at cox.net
Sun Feb 26 21:12:43 UTC 2006
Paul Dickson wrote:
>On Sun, 26 Feb 2006 09:53:32 -0800, oldman wrote:
>
>
>
>>Paul Dickson wrote:
>>
>>
>>
>>>If I do a "cp -a" to a NFS volume, the resulting files have the current
>>>time stamp. Do I need to change my mount options or is this a kernel bug?
>>>
>>>Current options in fstab: defaults,owner,rw,user,auto,hard,intr,exec
>>>
>>>
>> This is the way cp is supposed to work. to preserve the time stamp
>>see the man
>>page on cp and look for the option --preserve
>>
>>
>
>No, the man page says -a preserves timestamps, but it's not.
>
> -Paul
>
>
>
Hmm.. looks like I could have read more closely that cp -a is the same
as -dpR. Did you try specifying the --preserve anyway?
I tested it locally and it behaves as expected. Perhaps you could try
rcp or scp?
Scott
More information about the fedora-test-list
mailing list