Export and import while preserving note IDs

Is there a way to restore from a raw backup with everything the same as before? I tried using import but every id was changed and messed up versioning in future backups.

Versioning information is not saved when exporting data, which makes sense if you think about it.

When you import, you always import new notes, and these notes don’t have an history yet since they are new. If you want somehow the IDs to be preserved, and update the existing notes, and maybe also delete the notes that are not in the archive, then what you want is not export/import but synchronisation.

Just curious, what are you trying to do? Maybe there’s a different way to do it.

Thanks for the prompt reply!

Actually what I want is reliable synchronisation. I used webdav (without E2EE) for a while and some of the attachments just got lost again and again. So I try to make a backup with git versioning to find them back easily.

1 Like

I think I find a way to track the changes.

By using File system as a target, I can have all my notes synced to a directory, and then manage that directory with git.

In another laptop I can pull the files from git, and then sync from File system.