How can manually export note data without syncing [Android]

I have a damaged Android phone, which I had been using for a number of years, that has a large number of Joplin notes on it.

I'm looking for a way to manually extract the notes data, and exported so I can use it on my new device.

I mention it is damaged only because it might not be possible to get it any network connectivity, and therefore when I take it to the repair shop I will have to get the data out either through the USB port, or by exporting it to an SD card.

So, considering I cannot use the the standard sync method (honestly, I've never really configured that anyway), how can I manually do this.

Do I need to somehow copy the entire app directory, or just the folder where the notes are?

The actual Joplin installation is obviously in the "android" app "data" directory, but there is a separate file where I have synced the notes through the file system:

If I just copy the contents from here, and send it out, will that be enough to import it to my new installation? Or do I need some other metadata material?

Will that preserve any of the notebooks or tags? Or will it just be a bunch of random individual notes?

Also, the old notes are synced did the local file system, but also encrypted. Do I need to somehow reverse the first? Do I need to export the key file to make them readable in the new installation?

Any detailed instructions on how to do this, even if it seems elementary, would be greatly appreciated, since I am something of a novice.

3 Likes

I'd love to know how to export my notes from the Android as well since I'm afraid of loosing all my notes because of synchronization failure!
Please, someone, tell me how to backup my files!
Thanks!

On android in the config screen you can use export profile as a backup which will contain your sqlite database and resources folder which apparently (although I've not actually tried it) you can drop in place of your regular Joplin database + resources folder - best try with a portable install.

For desktop I would just use the simple backup plugin.

1 Like

Good to know. At least I have something to try with if the sync keeps not working as it is... I feel quite concerned using Joplin now as it doesn't import my notes from Dropbox, I've filed a bug on Github yesterday.

I have no folder named "Joplin Notes" in Documents folder - either in Internal or SD.
In fact a search for "Joplin" returns no results.
I don't understand what the "config screen" is - is that a developer thing?
I simply want to export all Notes as there are plenty of posts about attempting to sync deleting all existing notes.
I am happy to do this manually.
In the Joplin help pages it says you can export in Android but it doesn't say how and I can not find an option to do so.

Tried searching Android phone for *.md - no results.
Tried Configuration > Export Profile - "Could not export files: Directory could not be created". I realise this would probably not have exported the notes themselves anyway - just trying to be proactive and thorough.
Tried Configuration > Sync target: File System, set up a folder ("SD Card/Sync Joplin", hit Synchronise: nothing happens, no files in the folder I created and set as sync target.
(There is a permanent message below the Sync button saying "Created remote items: 1, Completed, Last Error: ... Could not encrypt... Master key is not loaded.
When I tap the orange banner "Press to set the decryption password" it says "Master password: Loaded". I have tried disabling encryption. Nothing works.

I simply want to start from scratch and sync from PC to Android and then work from there - hoping I can backup from PC, relying on successful sync.
It would be good however to know I can export or backup or at least manually copy files from Android if you can tell me how in slightly more detail please.