Skip to content

Synchronize with folder

Mike Schwörer edited this page Mar 30, 2018 · 2 revisions

You can (additional to the normal remote synchronization) also synchronize your notes with a local folder in your filesystem. AlephNote will immediately write all changes to the files in this folder and apply changes to these files back into its own storage.

You can use this feature if you only want AlephNote as a synchronization agent and not as an editor. Simply minimize AlephNote into the traybar and edit the notes on your filesystem with any editor/program. AlephNote will the do the work to keep your local files in sync with the configures remote.

To enable this feature go to Settings -> Other and check the option "Synchronize notes with local folder". Also choose an empty (!) folder path and an encoding for the text files.

Attention!
It is important that you edit the notes (or create new notes) in the specified encoding. Otherwise AlephNote will read garbage from the file.

You can further specify the sync behavior by allowing/disallowing

  • the synchronization of new notes (creating a file in the folder)
  • the synchronization of deleted notes (delete a text file in the folder)
  • the synchronization of modified notes (edit a existing text file in the folder)

If the note title (or the folder title, see the folder mode) can not be used as a filename due to restrictions in the operating-system/file-system the problematic characters will be escaped with the escape character %

Attention!
If you enable "Synchronize modifications" and/or "Synchronize deletions" accidental changes in the filesystem can lead to data-loss, you should set-up a local git-backup or another backup-strategy

To get the file events from the Filesystem AlephNote uses a .Net filewatcher, but because the venets are not always 100% reliable the folder is also read with every synchronization (the sync interval is configured in the settings)

To see this working or find problems you can view the log (under menu entry Help) and enable debug events.
Events from the folder synchronization are marked with the tag [RawFolderSync]