Lost photos (resoures) on PC

I thibk your problem is the following:

  • Setup a new Joplin
  • Sync to Ondrive
  • Copy back the da to the profile

The next time you sync, it will assume that all data from another client has been deleted, so all data will be deleted locally again.

Use the re-upload option in the configuration menue.
grafik
or restor all data localy and the configure again to onedrive (But in ondrive should no Joplin data)

Response to the last post from you:

First picture shows the backup of a locale profile, the second piture shows a synctraget

Syntarget data != local profile data!

Sorry Jack, can you explain that differently, what does this mean I can do going forward? I struggle understanding the terms synctarget, does that mean OneLink in my case?

Also where will the re-upload local data get this data from as it is only in a zip file at present. Can I download it anywhere and then just point to it. I see that when I click on the re-upload button it warns that this cannot be undone so I a bit worried about what happens next

No you can not restore the local prfile data into the synctarget!

A backup from the synctarget can only be restored as a synctarget
A backup from the locale profile can only be use to restore the local files

This is a Backup of a local Profile:
grafik
Don't try to restore this into OneDrive!

Restore it into the local Profile folder again.

I descripe only one way, but there are several ways to restore the data.

Clean SyncTarget

  1. Copy the OnDrive\Apps\Joplin out of OneDrive (Only as a Backup [since I have no idea what you have copied ])
  2. Delete OnDrive\Apps\Joplin

Restore

  • Install an empty joplin (Delete all local data)
  • Restore the Profile data to ~\.config\joplin-desktop or into the folder JoplinProfile witch is createt from the portable version
  • Start Joplin
  • Interrupt the sync
  • Go into settings an use the re-upload data option

@antonvons I have completely lost track in your post what you have and what not and what do you want to achieve?

You want to restore the local backup or a SyncTarget backup, or what?

First, can you explain what is referred to as SyncTarget, is this the JoplinProfile folder in the case of a portable install?

Synctarget

grafik
In your example OneDrive

Joplin profile folder

Sorry, I have been at this for 10 hours or so. The only data I now have is a zip I made of the full version .config folder prior to deleting it on my C: drive.
And I now have nothing but Joplin-portable installed on a non OneDrive folder and after running the .exe and then connecting OneDrive sync to it I now have a default install of the portable version with what I'm guessing is the sync target set up on F:......|\apps\joplin. And nothing else

I did find previosly that when I replaced the JoplinProfile folders with the data from the zip file, joplin-portable runs and I see all my previous data. Just that a sync won't work. So now with the portable version now seperate from the OneDrive if I re-download the zip data to JoplinProfile as I did previously but then do a re-upload I may be ok. Hope this makes more sense now

Your local profile is the folder where your local editing and running of Joplin is from. If you go to help > open profile directory then that is your local profile which contains a folder of your resources, settings files and your notes database.
By default this should be in ~/.config/joplin-desktop for your install and should be in a folder right next to your .exe file for your portable one.

A sync target is where Joplin stores all sync data - i.e. resources, sync metadata etc. in files which you must not mess with as it will break your sync. It is full of md files but with no recognisable file names as well as various lock files. A Joplin client will then read this data and integrate any changes into the local database.
In your case if you are using OneDrive what this folder is actually doing is downloading your sync target FROM your onedrive - so whilst it is 'local' the files actually came from your onedrive and not directly from Joplin. You don't need to do anything with the data in there, for example I actually have my entire sync target folder exluded from local syncing to my machine to avoid doubling my disk space for no reason.

Thanks for your help and great explanation. Most of my trouble stems from lack of understanding and not thinking through the process I went through to move from my full install to a portable one.

An then I think I understand now that I fell into a trap on installing the portable .exe in what I now understand should be only my sync target, that is I installed it on my F: drive but under OneDrive so I was running the portable install from OneDrive and not local. This no doubt is where all the strange sync issues in both Joplin and OneDrive started happening.

To cut to the chase I now have a vanilla portable Joplin install on a purely local folder on my F: drive and a sync target set up to F:.....OneDrive\apps\joplin (created by running Joplin, not manually). This I believe should be correct. Now all I need to do is re-download my zip contents to the local JoplinProfile folders and then do a re-load as per Jack's instructions. Hopefully I have got it right.

And presto, I have the portable version running and syncing to my sync target (love that term now).

My steps after starting from a new portable install and having had Joplin create my sync target on OneDrive, I again downloaded my data from my zip backup, stopped the sync process, went to configuration>sync and ran the re-upload option. Also I deleted all data in the Joplin sync target (folders and all).

So simple once you have done it. I wonder if Iā€™m the only dumb old IT guy that has fallen into the trap on installng the Jopin-portable.exe into a folder under OneLink.

A big thank you for all your help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.