How to change, where notes and settings being stored for joplin cli; How to export automatically

I work with the desktop version, not the cli version of joplin.

  • The operating system used:
    Manjaro Arch Linux

Hello, I would like to apply the genius idea of this backup script:

There are two directories where my notes are stored:
(1) $HOME/.config/joplin
(2) $HOME/.config/joplin-desktop

All my notes are stored in (2).
(1) is just automatically created and is useless for me.

Here is the Problem which I could not solve or find online or in the "joplin help all" page:

The command:

joplin export --format raw $HOME/Desktop/jExport/

exports only (1), but I need (2).

I would like to run the script in the background.
So that (2) is being exported.

You should be able to do that with --profile.

Your command would end up looking something like:

joplin ---profile $HOME/.config/joplin-desktop export --format raw $HOME/Desktop/jExport/

To be clear, this is an undocumented and (I believe) still unsupported flag, but it seems to be fairly well known.

1 Like