# Export / Import is not a backup

**URL:** <https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934>\
**Category:** Support\
**Created:** [25 May 2020 23:08 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934 "2020-05-25T23:08:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahpl](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@ahpl](https://discourse.joplinapp.org/u/ahpl)\
**Post date:** [25 May 2020 23:08 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/1 "2020-05-25T23:08:05Z")

</div>

Xubuntu 18.04, Joplin 1.0.216.

While struggling with fixing my sync I notice that the export I made before the mess started does not seem to contain all notes.

After import to a fresh installation of Joplin I have 736 notes, while in the encrypted folder there are more than 2600 md files.

I suppose that is because Joplin keeps track, not only of notes, but also of completed tasks and deleted notes. So it seems if you need to keep version history the right thing to do is backup the joplin directories.

Lesson learned.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [27 May 2020 02:58 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/2 "2020-05-27T02:58:19Z")

</div>

Export is a backup of the current notes (+tags, metdata, resources).

The additional md files you see are tags, relations, and most likely version history files.

---

<div class="post-metadata">

**Author:** ![eagle](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@eagle](https://discourse.joplinapp.org/u/eagle)\
**Post date:** [27 May 2020 11:31 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/3 "2020-05-27T11:31:25Z")

</div>

> [@tessus](#):
>
> Export is a backup of the current notes (+tags, metdata, resources).

Then I think @ahpl makes a very valid point in that export to JEX is not a _full_ backup (since note history is not included in the JEX file).

On the other hand I think that note history is not included in syncing either...

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [27 May 2020 12:46 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/4 "2020-05-27T12:46:04Z")

</div>

Note history is included in sync, but not export. Exported notes are essentially a copy of the notes, so they start with a new history.

If you need to preserve history in your backup, you need to backup the sync directory.

---

<div class="post-metadata">

**Author:** ![ahpl](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@ahpl](https://discourse.joplinapp.org/u/ahpl)\
**Post date:** [30 May 2020 09:09 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/5 "2020-05-30T09:09:36Z")

</div>

A nice option would be a function to **restart sync** (as opposed to changing the sync directory, which may delete notes).

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [30 May 2020 17:19 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/6 "2020-05-30T17:19:08Z")

</div>

`Restart sync` is the wrong term because it could be understood incorrectly.

Here are more accurate terms:

- Re-initiate sync
- Re-initialize sync
- Start sync from scratch
- Overwrite local data
- Overwrite remote data

In either case, the consequences must be explained properly with a big fat warning!

---

<div class="post-metadata">

**Author:** ![mic704b](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@mic704b](https://discourse.joplinapp.org/u/mic704b)\
**Post date:** [31 May 2020 01:25 UTC](https://discourse.joplinapp.org/t/export-import-is-not-a-backup/8934/7 "2020-05-31T01:25:09Z")

</div>

Something else to note about “export/import as backup/restore”; if you restore by importing from backup, the restored notes don’t retain their original id, they will be assigned new id’s. Ids are internal identifiers, however they are exposed to the user in several contexts. I understand why it works this way technically, however it is something to be aware of.
