Rsync -u option
Matthew Flaschen
matthew.flaschen at gatech.edu
Thu Mar 26 14:58:30 UTC 2009
Markus Schönhaber wrote:
> Matthew Flaschen:
>
>> Does the rsync -u option consider mtime (modification time) or atime
>> (access time)? I had been thinking it was mtime, but now I'm not so sure...
>
> Judging from man rsync
>
> |-u, --update
> | This forces rsync to skip any files which exist on the destina‐
> | tion and have a modified time that is newer than the source
> | file. (If an existing destination file has a modification time
> | equal to the source file’s, it will be updated if the sizes are
> | different.)
>
> it seems to me that mtime is indeed what counts (as I, too, was thinking).
I plead guilty to only half RTFM this time. /ed over (searched in most
pager) to the first -u with an explanation, but failed to notice that it
was under "OPTIONS SUMMARY" (and the detailed option was later). Thank you.
Matt Flaschen
More information about the ubuntu-users
mailing list