deepal / boostnote-github-sync

✨ Sync BoostNote notes into Github Private Repo in Markdown format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process restart with `enumerateOnStartup` set to true causes all the notes getting synced again

deepal opened this issue · comments

If the enumerateOnStartup is set to true and process is restarted due to some issue, the entire enumeration process happens again (even for the already synced notes).

The best way to do this is:

  • keep the metadata file always in-sync
  • Verify the note's checksum with the metadata file's corresponding checksum for the file
  • Sync only if the checksum is changed