
rsync does not sync repositories atomically a write can be in flight on a repository while rsync is reading from the repository, and it will not capture all the changes associated with the write.I got the current rsync from cvs and built it on both the BackupPC server and on a linux client. GitLab must be shut down at both source and destination to prevent corruption of repositories BackupPC-users Problem with rsync checksum caching.

#Rsync checksum how to#
this includes steps for how to investigate any checksum mismatch.This means it will synchronise more files than the.

That is very efficient because similar to rsync it transfers only the changed data. ignore-times means that rsync will checksum every file, even if the timestamps and file sizes match. In such a situation I would consider using btrfs snapshots and snapshot transfers instead. writes to a file and then sets back the file mtime to the earlier value. rsync does it in O(n) time instead of O(n m) time, where n is the size of the file and m is the window size). The preferred way to do this is Gitaly's repository.CalculateChecksum() Further details Checksums are needed only if there is a risk that something manipulates the mtime values i.e. rsync's weak-hash algorithm is specifically designed to work on a rolling-basis (such that you can push-and-pop individual byte values) instead of reiterating the window on every byte (i.e. If a customer copies git repositories using rsync, they should verify this has been successful for every repository. Corrective action identified during a customer's migration.
