bingryan/obsidian-ibook-plugin

Would you consider supporting the delta sync/incremental backup feature?

Closed this issue ยท 12 comments

The current plug-in is very good ๐Ÿ‘๐Ÿป, but the original folder must be deleted every time it is imported, and it cannot be overwritten or incrementally synchronized on the existing basis.

I hope you will consider supporting the delta sync feature.

  1. The same book, updated to the latest highlights and notes.
  2. When the highlights and notes of the book have not changed, do not adjust.

If a book is deleted in iBooks, the highlights and annotations of the deleted book will be hidden when the plug-in is used to reimport all books.
It is hoped that the highlights and annotations will not be adjusted during incremental synchronization.

for your description, I will try to implement them :)

Thanks.
Maybe you can refer to the delta sync feature of this plug-in.

After trial, I found its delta sync feature is adequate, but it would not retain the annotations of previously read but deleted books.

The annotations in the .sqlite table will not be discarded even if the book is deleted.
Therefore, I think the feature of retaining historical annotations can also be realized.(not sure, I guess)

Thanks. Maybe you can refer to the delta sync feature of this plug-in.

After trial, I found its delta sync feature is adequate, but it would not retain the annotations of previously read but deleted books.

The annotations in the .sqlite table will not be discarded even if the book is deleted. Therefore, I think the feature of retaining historical annotations can also be realized.(not sure, I guess)

yes, The annotations not be delete even if the book is deleted.

I have to deal with other things recently, maybe start working on it next week :)

Excellent, I am eagerly anticipating it.โค๏ธ

Excellent, I am eagerly anticipating it.โค๏ธ

I'm very sorry, I have been busy with an AI client before, and I will deal with this problem next, :)

Don't be sorry, in fact, I should be the one expressing gratitude for all the work you've done.
The initial version was already good enough, and I'm sincerely appreciative that you're dedicating even more effort to refine it.

the original folder must be deleted every time it is imported

this logic does not appear, current is:

  1. The export directory (ibook) will be created if it does not exist
  2. Import each book with annotations/hightlights into the export directory(file name is the same as the book name)
  3. if there is already a file with the same book name, the book will not be imported again

Maybe you can refer to the delta sync feature of this plug-in.

i have read this plugin code , It has no content delta sync.

For content delta sync. Can you consider: https://github.com/bingryan/obsidian-ibook-plugin#export-single-book-by-search

It will be on your mouse cursor and start importing the entire content, then you can select content you want into add.

I've used the latest version and it does what I want. Thanks. ๐Ÿ™

Thank you for your continued attention to this plugin