[Bug 13735] Synchronize files when the sending side has newer change times while modification times and sizes are identical on both sides

samba-bugs at samba.org samba-bugs at samba.org
Thu Jun 20 17:43:20 UTC 2019


https://bugzilla.samba.org/show_bug.cgi?id=13735

Sébastien Béhuret <sbehuret at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |---
             Status|RESOLVED                    |REOPENED

--- Comment #4 from Sébastien Béhuret <sbehuret at gmail.com> ---
Quick workaround to find backdated files that may be -wrongly- ignored by
rsync:

# print if ctime > mtime
find /path/to/source/ -type f -exec bash -c 'test `stat -c "%Z" "{}"` -gt `stat
-c "%Y" "{}"`' \; -print

However, on a regular system, most files will be backdated, e.g. if they have
been moved or permissions/ownership were altered, which makes the above command
unpractical.

A practical use case is the following: An initial transfer was done a year ago
and we want to update the destination incrementally. To find backdated files
that may be ignored by rsync, we have to look for files that were backdated
after the original transfer:

# print if ctime - mtime > 1y (31536000s)
# difference between the time of the original transfer and the time of the
incremental update
find /path/to/source/ -type f -exec bash -c 'test `expr \`stat -c "%Z" "{}"\` -
\`stat -c "%Y" "{}"\`` -gt 31536000' \; -print

Re-opening this bug report as there is currently no satisfactory solution to
ensure rsync will transfer all modified files during incremental updates.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list