Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to back up only changed notebooks? #72

Closed
tomasz1986 opened this issue Mar 8, 2024 · 5 comments
Closed

Option to back up only changed notebooks? #72

tomasz1986 opened this issue Mar 8, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@tomasz1986
Copy link

Please forgive me if the question has been asked before, but would it be difficult to implement an option to back up only changed notebooks? Currently, when using the "only on change" backup type, the plugin still exports all notebooks to JEX even if only some of them have actually changed since the last backup.

The reason for this is to reduce the backup size.

@JackGruber
Copy link
Owner

Yes, this is the desired behavior from only on change, a backup is not always created at the specified time interval, but only if there has been a change.

This would only be possible if each note is exported individually, but then a complete import would no longer be possible and you have to import every note for its self, and all internal links would be lost and the folder structures.

@JackGruber JackGruber added the question Further information is requested label Mar 8, 2024
@tomasz1986
Copy link
Author

tomasz1986 commented Mar 8, 2024

What I mean is that let's say I've got 20 notebooks and I make a backup. The initial backup contains all of those 20 notebooks. Then I edit just a single note in one of the notebooks. Then I do yet another backup. The new backup still contains all 20 notebooks, even though in reality the "change" was in a single note in only one of those notebooks.

Is it still required to always back up all notebooks in such a situation (instead of just the one which contains the edited note)?

@JackGruber
Copy link
Owner

Yes it`s required to always back up all notebooks.

Each note gets a new ID during the import and therefore duplicates are created and the links between the notes are lost

The following will happen when not:

You have the following:

  • Note A in Notebook A
  • Note B in Notebook B
  • Create First Backup (Contains all infos) Backup A
  • Edit Note A
  • Create Backup (Contains only Note A) Backup B
  • Start a new Joplin
  • Import Backup A and Backup B
  • You have now the following:
  • Note A in Notebook A from Backup A
  • Note B in Notebook B from Backup A
  • Note B in Notebook X from Backup B

The Note B was is now available twice with different contents.

@tomasz1986
Copy link
Author

I see… Thank you for the explanation!

I originally enabled the per-notebook backup to save space, but this means that there is basically no difference in size when compared to a single JEX backup, right?

@JackGruber
Copy link
Owner

Correct, the option is only that a full export is created when some note, notebook, tag or resource has changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants