# Portable Version: New sync target, how to proceed

**URL:** <https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144>\
**Category:** Support\
**Created:** [19 July 2020 21:49 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144 "2020-07-19T21:49:26Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [19 July 2020 21:49 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/1 "2020-07-19T21:49:26Z")

</div>

Hi,

I’m syncing to my Nextcloud. I will switch this Nextcloud instance to a new server. How to proceed with the sync? I`m using Joplin portable.  
My idea is, to change the sync path on the master PC with Joplin. Sync everything to Nextcloud. For all other clients incl Android and iPhone I will deleted the portable version / app and just reseync new.

Will this work?

Or is it possible that I only change the paths?

Thanks  
Stefan

---

<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:** [19 July 2020 22:09 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/2 "2020-07-19T22:09:11Z")

</div>

> [@235462849350](#):
>
> My idea is, to change the sync path on the master PC with Joplin. Sync everything to Nextcloud.

This is a two-way sync. There is no master. If you change the path, it will delete all your local data.

I'm not sure what would happen, if you changed the server as well. It should recognize that it is a different server, but maybe this is only the case when changing to a different sync method (dropbox, onedrive, ...).

Whatever you do, please make a backup of your notes: `File -> Export -> JEX`.

Maybe Laurent has a definitive answer.

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [21 July 2020 21:08 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/3 "2020-07-21T21:08:17Z")

</div>

So any news on that?

---

<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:** [21 July 2020 21:30 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/4 "2020-07-21T21:30:07Z")

</div>

Just copy all the data from the old Nextcloud server to the new one, then change the paths in all the clients. Joplin will see the same data so it will just sync as normal.

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [21 July 2020 22:02 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/5 "2020-07-21T22:02:59Z")

</div>

The files from the old Nextcloud Server are not available any more. I have my local Joplin synced with the latest data. This machine is up to date and must sync to Nextcloud again.

I tried to sync to the new server but the sync stopped telling me I should disable failsafe. Doing this it deletes my local notes. I made copies before…

---

<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:** [22 July 2020 00:00 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/6 "2020-07-22T00:00:20Z")

</div>

If the data on the sync target is gone, Joplin can’t know if you’ve deleted all your notes or if it’s some other issue, thus the fail-safe.

In this case your best option is to re-import your backup in Joplin and then sync. The notes you would have imported would be new and so won’t be deleted.

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [22 July 2020 09:37 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/7 "2020-07-22T09:37:38Z")

</div>

You mean creating a new folder with a fresh portable exe. Then importing the JEX file and then sync?

As I can see the notes are not decrypted anymore in this case? Right?

Is the JEX Export a 1:1 copy containing all notes, formatting, links and attachments?

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [22 July 2020 21:17 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/8 "2020-07-22T21:17:45Z")

</div>

If my assumptions are correct, please drop a short confirmation. I need get Joplin working again:)

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [23 July 2020 13:52 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/9 "2020-07-23T13:52:11Z")

</div>

Am I right?

---

<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:** [23 July 2020 20:23 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/10 "2020-07-23T20:23:40Z")

</div>

> [@235462849350](#):
>
> Is the JEX Export a 1:1 copy containing all notes, formatting, links and attachments?

Yes, if you do it from `File -> Export -> JEX`.

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [24 July 2020 20:32 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/11 "2020-07-24T20:32:25Z")

</div>

Are you sure?  
I did an JEX Export from my “old” Joplin. Reimporting this JEX Export to a new Joplin Portable exe shows different numbers for notes, resources, etc.

Whats the reason for that?

---

<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:** [24 July 2020 20:37 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/12 "2020-07-24T20:37:49Z")

</div>

The JEX export does not store the note history, but only the most recent version of the notes. Also, some resources might be not in use but still not deleted by Joplin due to a bug. So those dead/orphaned resources would also not be in the jex.

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [24 July 2020 20:51 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/13 "2020-07-24T20:51:34Z")

</div>

Ok thanks. Just want to be sure, that I have 100% of it back.

So that would mean if the export for example shows folder “test: 50 notes” and the original one says folder “test: 52 notes” there are only 50 notes in the original as well and the displayed number is wrong due to dead notes etc, right?

---

<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:** [24 July 2020 21:05 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/14 "2020-07-24T21:05:03Z")

</div>

Notes and Folders must be the same. Resources and Revisions do not.

There are no dead notes, but only dead (orphaned) resources.

---

<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:** [24 July 2020 21:11 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/15 "2020-07-24T21:11:00Z")

</div>

Laurent changed the sync status screen, so I’m not sure what the difference is between resources and attachments.  
Until now I thought that resources are my attachments. And they shoul be the same, because I don’t use note history. But I have 45 attachments, but 125 resources.

Now I am very confused.

But the number of notes must be the same before and after. @laurent any ideas?

---

<div class="post-metadata">

**Author:** ![235462849350](https://avatars.discourse-cdn.com/v4/letter/2/bc8723/32.png) [@235462849350](https://discourse.joplinapp.org/u/235462849350)\
**Post date:** [25 July 2020 21:45 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/16 "2020-07-25T21:45:54Z")

</div>

if you are confused, think about the user:  
Let`s see what @laurent says

---

<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 July 2020 21:39 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/17 "2020-07-27T21:39:12Z")

</div>

> [@tessus](#):
>
> But the number of notes must be the same before and after. @laurent any ideas?

I didn't implement the resource list screen so I don't know exactly how it's filtered. Probably two different queries in two different places, but I don't have time to look into it.

---

<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 July 2020 22:17 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/18 "2020-07-27T22:17:52Z")

</div>

I think you misread. I said sync status screen:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/c/c0cd2e71aed04c067243a45b80d909e71ed2e62f.png)

---

<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 July 2020 23:40 UTC](https://discourse.joplinapp.org/t/portable-version-new-sync-target-how-to-proceed/10144/19 "2020-07-27T23:40:21Z")

</div>

I see, yes indeed that’s not right. First, “resource” should be renamed “attachment” because that’s the term we use in the UI. And secondly the count should somehow be fixed or clarified. I forgot how the top count is generated but will check.
