cp --update

stephen.r.gray_at_gmail.com
Date: 03/24/05


Date: 24 Mar 2005 14:42:38 -0800

If I do:

cp -R --preserve=timestamps /dir1 /dir2

and then do:

cp -uR --preserve=timestamps /dir1 /dir2

The second command tries to copy files that have not been updated. The
timestamps are the same. The only difference is the permissions. Is
this the reason cp thinks these files have changed? I want cp to
ignore permissions and only look at the timestamp to determine if files
need to be updated.

Thanks for the help,
Stephen



Relevant Pages

  • Re: cp --update
    ... I hate it when people say "here's a better way!" ... time, but I use rsync. ... > timestamps are the same. ... The only difference is the permissions. ...
    (comp.os.linux)
  • Re: Moving MySQL database
    ... > Matthew Seaman wrote: ... >> preserve ownership, permissions, timestamps etc. ...
    (freebsd-questions)
  • Re: Timestamps in libraries created by GNU ar
    ... The original files' contents, mode (permissions), timestamp, owner, ... if it didn't store the timestamps? ... object files instead. ...
    (comp.arch.embedded)
  • Re: [PATCH take 2][RFC] fat: Save FAT root directory timestamps to volume label
    ... backup-script which I wrote many years ago and which has not been in use ... some of which might be able to speak only FAT. ... So whatever timestamps are found at backup-time, ... much reason to take it in. ...
    (Linux-Kernel)
  • Timezone trouble
    ... Hi there, all the timezones on our client machines and our serverare EST and for some reason when people are sending mail within the organization sometimes the timestamps are being listed as Pacific time, the sender's timestamps in their emails are EST but the receiver sees pacific time. ...
    (microsoft.public.exchange.admin)