Rsync -u option

Markus Schönhaber ubuntu-users at
Thu Mar 26 13:39:04 UTC 2009

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).


More information about the ubuntu-users mailing list