Browse Source

chore(sync): update doc

rcmerci 3 years ago
parent
commit
5f1a76f486
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/main/frontend/fs/sync.cljs

+ 8 - 1
src/main/frontend/fs/sync.cljs

@@ -23,8 +23,15 @@
 ;;;   transaction-id: sync progress of local files
 ;;; - logseq/version-files
 ;;;   downloaded version-files
-;;; files included by `get-ignore-files` will not be synchronized, see also `get-ignore-files`
+;;; files included by `get-ignore-files` will not be synchronized.
 ;;; files in these `get-monitored-dirs` dirs will be synchronized.
+;;;
+;;; sync strategy:
+;;; - when toggle file-sync on, trigger a full-sync first,
+;;;   full-sync will compare local-files with remote-files (by md5 & size),
+;;;   and upload new-added-files to remote server.
+;;; - full-sync will be triggered after 20min of idle
+;;; - every 20s will flush local changes, and sync to remote
 
 
 ;;; TODO: add some spec validate