Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAQ] Does rsync 3.2.7 use ctime or mtime for the "quick check" algorithm? #627

Open
Semnodime opened this issue Aug 6, 2024 · 0 comments

Comments

@Semnodime
Copy link

The manual for rsync 3.2.7 states:

       Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified  time.   Any  changes  in  the
       other preserved attributes (as requested by options) are made on the destination file directly when the quick check indicates that the file's data does not need to be updated.

Regarding said last-modified time, does rsync use ctime or mtime?


According to https://lists.gnu.org/archive/html/coreutils/2010-08/msg00010.html,

POSIX says that [...] ctime must unfakeably track the current time of any action that changes a file's metadata or contents

, so I assume rsync uses it (and I suggest it should, if it does not already).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Semnodime and others