rsync and the file's mtime
Adrian Ho
aho-sw-rsync at 03s.net
Mon Nov 25 01:49:00 EST 2002
On Sun, Nov 24, 2002 at 05:46:06AM -0500, Jeff Bearer wrote:
> I'm trying to write a script that runs rsync to pull files and then
> detect which ones of them have changed. The problem is when I run rsync
> without the -t flag the mtime gets updated every run, not only when the
> file changes. It this a bug, by design, or un-avoidable?
By design -- "man rsync" and read the "-t" option description.
> Is there any way to make rsync behave as desired?
Yeah, and you mentioned it in your problem description. Is there a
reason why you can't use "-t"?
- Adrian
More information about the rsync
mailing list