this post was submitted on 01 Mar 2024
21 points (88.9% liked)

Selfhosted

40329 readers
412 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Tldr : Need to sync files on my phone and laptop via some remote repository.

So I'm currently using Syncthing to sync my backup files and Joplin notes on my phone and my laptop. I'm not home 3 days a week, so whatever notes I take or changes I make, won't be reflected on my laptop until I come home. I tried next cloud (free tier) sync for Joplin before, but the server has issues from time to time and but the sync part doesn't work properly.

Is there a way for me to use Syncthing or something else using some free or very cheap service and hopefully secure, in such a way that my phone , my laptop and the 3rd service all can be in sync. Also I'm kind of a noob when it comes to all these self hosting stuff, but I can learn some stuff not too complicated though.

Edit : My laptop is not ON during the 3 days I'm out of my house. Ideally once I power it on after a few days it should sync to the latest version.

all 28 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 8 months ago* (last edited 8 months ago) (1 children)

My fellow self-hosting noob, I gotchu!

Here are three solutions that are easy as pie:

  1. Keep using Syncthing, but add additional devices to that folder to ensure one is always online and ready to receive and sync.
    • Pro: You can use an old laptop, a PC at home, your parent's phone and so on. It's like your own torrent network, as long as one peer is online it will always be synced.
    • Con: Your notes will be on those devices too. But in my personal experience Joplin notes don't take much space and as for privacy, you can always E2EE them.

 

  1. Use a different sync method that uses an always-on server for guaranteed sync.
    • I used Nextcloud for half a year and it worked flawlessly. I used the free 8GB hosting that tab.digital offers. Maybe give them a try again?
    • Alternatively, for an even faster experience (almost "Joplin server" levels of speed), use the S3 sync method in combination with Storj.io. They give you 25GB of free, decentralized, open-source, E2EE storage. You can DM me you need help setting up the S3 "bridge" with Joplin but it's fairly easy.
    • You could also use OneDrive or Dropbox and encrypt your notes end-to-end first, but let's assume you want to try to move away from closed-source services, not the opposite. Although the thought of making them pay the electricity bills without giving them your data can be quite amusing :P

 

  1. Use Elfhosted.
    • It's a newcomer in the "managed self-hosting" space that specializes in installing and setting-up all kinds of open-source software on a server for you. For some it's not really self-hosting since you don't have root access to the server, but at least it's not "Google Drive" levels of control and we're trying to get away from that. The guys at Elfhosted give you 10$ for free (no payment method required) to use on all of their offerings and as luck would have it, they also offer a Joplin server instance. The Joplin server instance costs 0.05$ a day, meaning that with those initial 10$ you could try it out for 6 months for free. As far as I can tell, at that price it can't be beaten, not even by a VPS. I used it two weeks ago and had no issues. You even get cool features like note sharing, multiple users and note collaboration. Or, always with Elfhosted, you could just use a Syncthing instance that's always-on, although they price that at 0.10$ a day.

 

P.s. There's a Joplin community on Lemmy too, at [email protected]. Happy syncing!

Edit: Hell, here's a fourth solution: Just use something like the FOSS app Round Sync and set it up so that it backs up your local Syncthing folder to a cloud of your choice (like those mentioned above) every 24h, or 2h, or even every 15 minutes. That way, once you come home and power on your laptop, your phone will automatically sync all your notes via Syncthing, but in the event that you lose your phone, you will have a "checkpoint" as recent as you want it to be. This way, you don't have to change your current setup and at the same time you're prepared in case something bad does happen. And in my case seeing that "Joplin Notes: Backup Completed" notification every 24h is something beautiful.

[–] [email protected] 1 points 8 months ago (1 children)

Holy shit, these are some really good suggestions. Thank you.

[–] [email protected] 2 points 8 months ago (1 children)

I may or may not have been in you exact situation for a while :)

If it's not too much of a hassle, let us know what you end up doing!

[–] [email protected] 1 points 8 months ago

I'm juggling few things in my life now, but once I make something running, I'll make sure to let you guys know how I made it running.

[–] [email protected] 4 points 8 months ago (1 children)

You could probably create a Tailscale vpn network (or something similar) and setup Syncthing to use the Tailscale address of your laptop.

[–] [email protected] 1 points 8 months ago

This is what I do for Logseq, works very well

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago) (2 children)

You can deploy the Joplin sync server using docker on a VPS or any other computer always on. I've been using it for about a year now, without issues, though I'm now transitioning to Notesnook now.

[–] [email protected] 1 points 8 months ago (1 children)

Sorry I forgot to mention, my laptop won't be powered ON during the 3 days I'm not home. So I was hoping a 3rd repo could be used for both my laptop and phone incase one of them is not powered on, so that the next time one of them gets powered on, it'll automatically sync to the latest version.

Can I run docker for free or for 1 or 2$ a month on some platform and will it be secure if I do that?

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

Yea, get a VPS (Virtual Private Server) and host it there.

Basically VM in the cloud that you use.

https://www.forbes.com/advisor/business/software/best-vps-hosting/

[–] [email protected] 1 points 8 months ago

This looks interesting. Thanks for the suggest both of you.

[–] slowroll 1 points 8 months ago

+1 for notesnook, i like it

[–] [email protected] 3 points 8 months ago (1 children)

What's the problem with syncthing? It can keep those 3 synced perfectly fine, no?

[–] [email protected] 2 points 8 months ago (2 children)

Syncthing works fine. The problem is, my laptop is not on all the time and in case my phone has a problem, I'll lose all my changes during the 3 days I'm out of my house.

[–] [email protected] 1 points 8 months ago (1 children)

So? If your laptop is off there's no way to sync to it. If you have a server available you just set syncthing there as well.

[–] [email protected] 1 points 8 months ago (1 children)

So basically I just run Syncthing on all 3 devices? The 3rd device being a VPS something like that?

[–] [email protected] 3 points 8 months ago (1 children)

Yup, syncthing allows for a folder to be synced to multiple places, so I don't see any problem with that. In fact I have 3 computers syncing things between themselves.

[–] [email protected] 1 points 8 months ago

That's great. Knowing that'll certainly makes things easier. Thanks.

[–] [email protected] 1 points 8 months ago (1 children)

Add a Raspberry Pi + USB drive to your network OR use a VPS to host your data and sync all devices to it using Syncthing. This RPi or VPS would work as a central repository/server for your all your data. Enjoy.

[–] [email protected] 1 points 8 months ago

VPS looks interesting. I'll try that. Thanks.

[–] [email protected] 2 points 8 months ago (1 children)

Are you using a VPN to connect to your devices at home? I have a similar setup, when I'm away from home, I connect via Tailscale (a version Wireguard VPN) and keep all notes in sync.

In Joplin I use the WebDAV connection to store files on my server at home.

[–] [email protected] 2 points 8 months ago

Sorry I forgot to mention, my laptop won't be powered ON during the 3 days I'm not home. So I was hoping a 3rd repo could be used for both my laptop and phone incase one of them is not powered on, so that the next time one of them gets powered on, it'll automatically sync to the latest version.

[–] [email protected] 2 points 8 months ago (1 children)

Once you turn on your Laptop it should just sync from your phone, no? I don't really get what the issue here is

[–] [email protected] 1 points 8 months ago

Yes this works 99% of the time. But in case my phone gets corrupt or damaged then I'll lose the data that was not synced. So I wanted something that can sync remotely.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
RPi Raspberry Pi brand of SBC
SBC Single-Board Computer
VPS Virtual Private Server (opposed to shared hosting)

2 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #562 for this sub, first seen 1st Mar 2024, 15:35] [FAQ] [Full list] [Contact] [Source code]

[–] [email protected] 1 points 8 months ago (1 children)

You could use a different service like one cloud or google and encrypt your data. Or you could get a pi, run it as a mini server, and run any number of docker containers from joplin cloud to nextcloud, or a simple webdav server.

[–] [email protected] 2 points 8 months ago

Thanks for the suggestion. Will check out Webdav server.