cross-posted from: https://sh.itjust.works/post/67490052

Is it possible to use joplin on my phone and desktop with syncthing?

I cannot figure out how to sync Joplin with anything, but I do use syncthing to basically back up my whole phone to my desktop whenever I’m on WiFi. Can I use desktop Joplin to access the syncthing folder and edit notes?

  • node815@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    27 days ago

    I use the docker version of the Joplin Server, it syncs with everything I’ve thrown at it which is a laptop, my Android Phone(s) over the years and my Desktop with no issues. It’s super basic so you just set up an account in the self hosted server and then proceed to login using the Synchronization settings in your Joplin App.

    If you have any existing data, Make sure to Back it up First!

    This is my compose I use. Sub with your values obviously.

    services:
        db:
            image: postgres:15.4-bullseye
            volumes:
                - /mnt/appdata/joplindb:/var/lib/postgresql/data
            ports:
                - "5432:5432"
            restart: unless-stopped
            environment:
                - POSTGRES_PASSWORD=postgres
                - POSTGRES_USER=postgres
                - POSTGRES_DB=joplin
        app:
            image: joplin/server:latest
            depends_on:
                - db
            ports:
                - "22300:22300"
            restart: unless-stopped
            environment:
                - APP_PORT=22300
                - APP_BASE_URL=https://public.url.example.com/
                - DB_CLIENT=pg
                - POSTGRES_PASSWORD=postgres
                - POSTGRES_DATABASE=joplin
                - POSTGRES_USER=postgres
                - POSTGRES_PORT=5432
                - POSTGRES_HOST=db
                - MAILER_ENABLED=1
                - MAILER_HOST=yourmailhost
                - MAILER_PORT=587
                - MAILER_SECURE=0
                - MAILER_AUTH_USER=Your Email user
                - MAILER_AUTH_PASSWORD=Your Super Secret Password
                - MAILER_NOREPLY_NAME=Your No Reply Name (eg:  Noreply box)
                - MAILER_NOREPLY_EMAIL=no reply email address
                - TZ=America/Los_Angeles 
    volumes:
      joplindb:
    

    And then in the settings for the sync in the app:

    Failsafe switch to prevent overwrite of Joplin data on local device

    To get there, Go to the Tools > Options > Synchronization

    Hopefully this will help. :)

    • pnut@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 days ago

      Can confirm, this works great! One time setup and never look back. Syncing iPhone, and multiple macOS desktops. Knock on wood, never had a single issue.

  • SatyrSack@quokk.au
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    27 days ago

    Certainly. This is what I do:

    1. Set up Syncthing normally (which you have obviously already done)
    2. Within the folder that you are synchronizing with Syncthing, create a new folder called joplin or something
    3. In Joplin (on desktop, mobile, and every device), set the synchronization target to your local filesystem.
    • Configuration > Synchronization > Synchronization target > File system
    1. Point it to your joplin folder that you created in step 2
    • Configuration > Synchronization > Directory to synchronize with (absolute path) > /your/path/here/joplin
  • Voroxpete@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    27 days ago

    My honest recommendation here would be to use Notesnook instead. I used Joplin for a while, and when I found Notesnook I switched immediately. It’s just flat out better at basically everything Joplin does, and it’s still open source. No need to run syncthing, use the notesnook server to sync and backup everything.