You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,6 @@ If you have deleted or renamed files, please wait until ⏳ icon disappeared.
114
114
- There are no 'exclude_folders' like configurations.
115
115
- While synchronizing, files are compared by their modification time and the older ones will be overwritten by the newer ones. Then plugin checks for conflicts and if a merge is needed, a dialog will open.
116
116
- Rarely, a file in the database could be corrupted. The plugin will not write to local storage when a file looks corrupted. If a local version of the file is on your device, the corruption could be fixed by editing the local file and synchronizing it. But if the file does not exist on any of your devices, then it can not be rescued. In this case you can delete these items from the settings dialog.
117
-
- If your database looks corrupted, try "Drop History". Usually, It is the easiest way.
118
117
- To stop the boot up sequence (eg. for fixing problems on databases), you can put a `redflag.md` file at the root of your vault.
119
118
- Q: Database is growing, how can I shrink it down?
120
119
A: each of the docs is saved with their past 100 revisions for detecting and resolving conflicts. Picturing that one device has been offline for a while, and comes online again. The device has to compare its notes with the remotely saved ones. If there exists a historic revision in which the note used to be identical, it could be updated safely (like git fast-forward). Even if that is not in revision histories, we only have to check the differences after the revision that both devices commonly have. This is like git's conflict resolving method. So, We have to make the database again like an enlarged git repo if you want to solve the root of the problem.
| 🔌 |[Plugin and its settings](#plugin-and-its-settings)|
@@ -74,14 +74,6 @@ If you have something troubled with other devices, you can protect the vault and
74
74
Delay database update until raise replication, open another file, window visibility changed, or file events except for file modification.
75
75
This option can not be used with LiveSync at the same time.
76
76
77
-
### Garbage check
78
-
This plugin saves the file by splitting it into chunks to speed replication up and keep low bandwidth.
79
-
80
-
They share the chunk if you use the same paragraph in some notes. And if you change the file, only the paragraph you changed is transferred with metadata of the file. And I know that editing notes are not so straight. Sometimes paragraphs will be back into an old phrase. In these cases, we do not have to transfer the chunk again if the chunk will not be deleted. So all chunks will be reused.
81
-
82
-
As the side effect of this, you can see history the file.
83
-
84
-
The check will show the number of chunks used or retained. If there are so many retained chunks, you can rebuild the database.
85
77
86
78
### Fetch rebuilt DB.
87
79
If one device rebuilds or locks the remote database, every other device will be locked out from the remote database until it fetches rebuilt DB.
@@ -242,47 +234,13 @@ But, there's no problem even if you leave it as it is.
242
234
### Verify and repair all files
243
235
read all files in the vault, and update them into the database if there's diff or could not read from the database.
244
236
245
-
### Sanity check
246
-
Make sure that all the files on the local database have all chunks.
247
-
248
-
### Drop history
249
-
Drop all histories on the local database and the remote database, and initialize When synchronization time has been prolonged to the new device or new vault, or database size became to be much larger. Try this.
250
-
251
-
Note: When CouchDB deletes entries, to merge confliction, there left old entries as deleted data before compaction. After compaction has been run, deleted data are become "tombstone". "tombstone" uses less disk, But still use some.
252
-
253
-
It's the specification, to shrink database size from the root, re-initialization is required, even it's explicit or implicit.
254
-
255
-
Same as a setting passphrase, database locking is also performed.
256
-
257
-
258
-
- Drop and send (Same as "Apply and send")
259
-
1. Initialize the Local Database and set (or clear) passphrase, put all files into the database again.
260
-
2. Initialize the Remote Database.
261
-
3. Lock the Remote Database.
262
-
4. Send it all.
263
-
264
-
- Drop and receive (Same as "Apply and receive")
265
-
1. Initialize the Local Database and set (or clear) the passphrase.
266
-
2. Unlock the Remote Database.
267
-
3. Retrieve all and decrypt to file.
268
-
269
-
270
237
### Suspend file watching
271
238
If enable this option, Self-hosted LiveSync dismisses every file change or deletes the event.
272
239
273
240
From here, these commands are used inside applying encryption passphrases or dropping histories.
274
241
275
242
Usually, doesn't use it so much. But sometimes it could be handy.
276
243
277
-
### Reset remote database
278
-
Discard the data stored in the remote database.
279
-
280
-
### Reset local database
281
-
Discard the data stored in the local database.
282
-
283
-
### Initialize local database again
284
-
Discard the data stored in the local database and initialize and create the database from the files on storage.
0 commit comments