Syncthing
Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose where it is stored, whether it is shared with some third party, and how it's transmitted over the internet.
Initial Setup
Installing Syncthing is easy. Simply issue the following command from SSH:
sudo box install syncthing
This command will configure and install syncthing for your user.
After installation, the config is stored in ~/.config/syncthing/
.
How to Access
After installation, you can access the web client at https://<hostname.ltd>/syncthing/
.
You can access the download section here for your other client that you plan to sync.
Service Management
- Status
- Start
- Stop
- Restart
- Enable
- Disable
sudo systemctl status syncthing
sudo systemctl start syncthing
sudo systemctl stop syncthing
sudo systemctl restart syncthing
sudo systemctl enable syncthing
sudo systemctl disable syncthing
Configuration & Usage
Syncthing needs to connect to another server running syncthing. We will do this by editing the settings.
Setup Remote Device
- On your Remote Client, Click Actions and then Show ID.
- Copy the ID
- On your other server on the bottom right click +Add Remote Device
- Paste the Device ID and give it a name
- Press Save
- On the other client there should be a pop up asking you if you want to add the device; Press add device.
- Another pop up will appear, press Save.
Adding a Folder to Synch with a Remote Server
- Click +Add Folder
- Give the Folder a Label
- Add the folder path of the directory that you want to sync to a remote server.
- Go to the Sharing Tab and put a check mark in the client you want to share it with remotely.
- Go to the Advanced Tab and choose the folder type you want.
- On your other client, another pop up will appear, choose add.
- Go through the settings and change what you want.
Troubleshooting
You can always also try the general troubleshooting tips written in our guide. They might or might not apply, but asking these questions can often make you understand what is under the hood better and help you find what needs to be fixed. It's always worth a shot!
Please refer to the syncthing documentation for further help.