Syncthing keeps a folder the same on several devices: your Linux server, your computer, or your App Hosting service. A typical use: your App Hosting service downloads, and Syncthing brings the finished files to your own server automatically. Syncthing connects the devices directly and encrypts the transfer. The steps were tested with Syncthing 1.29 on Ubuntu 26.04 LTS, synced with Syncthing on our App Hosting demo service.


1. Install and Start

apt install syncthing
systemctl enable --now syncthing@alex

Syncthing runs as your normal user (here alex) and syncs into folders of that user. Its web page listens only on the server itself, port 8384; the transfers use port 22000.

If you use ufw, open the transfer port:

ufw allow 22000

2. Open the Web Page

On your computer, open an SSH tunnel and keep the window open:

ssh -L 8384:127.0.0.1:8384 alex@your-server-IP

Then open http://localhost:8384. Syncthing warns that no password is set for the web page: set one in Actions → Settings → GUI (GUI Authentication User and Password), then Save.

3. Connect Your App Hosting Service

Each device has a Device ID: Actions → Show ID. Add the devices to each other:

  1. In Syncthing on your App Hosting service, click Add Remote Device and paste the ID of your server. How to open Syncthing on App Hosting: Syncthing.
  2. On your server, Syncthing then shows a message that the App Hosting service wants to connect: click Add Device. Or add it yourself with Add Remote Device and the ID of the App Hosting service.

Leave the addresses at dynamic: the devices find each other on their own. They connect within seconds.

4. Share a Folder

On the App Hosting service, edit the folder you want to bring home (or Add Folder), open the Sharing tab and tick your server. On the server, accept the folder when Syncthing asks, and choose where to keep it, for example /home/alex/from-apphosting.

For one-way copies, set the folder type on the Advanced tab:

  • on the App Hosting service Send Only: changes on your server never come back to the App Hosting service;
  • on the server Receive Only: the server only takes what the App Hosting service sends.

For example, a new folder with two files on the App Hosting service is complete on the server in less than a minute; the folder then shows Up to Date.

⚠ Syncing is not a backup

With normal two-way folders, a file you delete on one device is deleted on all others. Use Send Only / Receive Only as above, or File Versioning in the folder settings, if you want to keep files that disappear on the other side.

5. Control the Service

systemctl status syncthing@alex
systemctl restart syncthing@alex
journalctl -u syncthing@alex -f

Syncthing keeps its settings in /home/alex/.local/state/syncthing. More about services: Keep a Program Running on Linux.


Related Guides

View all Linux guides

Was this answer helpful? 0 Users Found This Useful (0 Votes)