Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Delta Sync

Fabian Sauter edited this page Jul 9, 2018 · 2 revisions

In order to do file sync we check periodically if there were files changed (It's planned to switch to Filsystem watcher to monitor for changes). To detect which files were changed we compare the MD5's of the files to internally saved hashes of them on the last run.

  • If the files weren't there in the prior run, they get marked for complete transmission.
  • If the hash changed we chunk the data into 900 Byte blocks. For each block we will calculate the CRC32. Afterward's it all CRC32 will get compared to the corresponding CRC32 of the previous run. If a CRC32 changed, it replaces the old CRC32 and the Part get's marked for transmission.
  • If nothing changed, nothing will be send.
Clone this wiki locally