Syncthing
Introduction
Syncthing is being used to sync files/folders between devices.
This is an adjuction of the Obsidian article.
Just could that is the magic sauce to keep the Obsidian vault synced everywhere!
Deploying Syncthing
- Navigate to your Portainer instance
- Select your environment and navigate to Stacks
- Click on Add stack
- Give the stack a name select the Web editor as build method
- Paste the Docker Compose configuration in the Web editor
Note that the second volume path leads to your Obsidian vault(s).
- Then click on Deploy stack
Setting up Syncthing
- Navigate to your Syncthing instance
- At first login create a new user by navigating to Actions -> Options -> GUI and enable the Use HTTPS for GUI option
- Navigate to Actions -> Options -> Connections and disable the following:
- Global Discovery
- Enable Relaying
By disabling these options you make your Syncthing instancce just a bit safer especially if you want to expose Syncthing instance.
I would advise against it and instead expose your Obsidian instance to the internet.
- Install Obsidian + Syncthing client on your Debian/Ubuntu based client computer and perform steps 1 through 3
If you are using a non Debian/Ubuntu client computer you can use the application Syncthingy. - Set up the connection between the server and the client side
- On the client navigate to Actions -> Show ID and copy the Device ID
- On the server click on Add Remote Device
- Paste the Device ID and give your client a name
- Within a minute you would see your client computer as Up to Date
- After logging in with the user add your Obsidian vault folder
- Click on Add Folder
- Insert a Folder Label
- Insert the absolute path to your Obsidian vault
- In the Sharing tab select your client computer to share the folder
- Winthin a minute you would the shared folder as Up to Date
If you like you can delete the default shared folder