Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time. Syncthing is available on Linux, MacOS, Android, Windows and other operating systems, making it a good choice for cross platform file sharing.
USE flags for net-p2p/syncthing Open Source Continuous File Synchronization
emerge --ask net-p2p/syncthing
To view all available configuration options:
man 5 syncthing-config
- Configuration files and security certificates, if run as a user.
- Config file for /etc/init.d/syncthing
OpenRC can start Syncthing at startup:
rc-update add syncthing default
Syncthing can be started as a user with systemd:
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
Usage: syncthing <command> Flags: -h, --help Show context-sensitive help. Commands: serve Run Syncthing decrypt <path> Decrypt or verify an encrypted folder cli Command line interface for Syncthing Run "syncthing <command> --help" for more information on a command.
Syncthing can be started as a common user:
It will create the following directories at first use:
- Configuration files and security certificates.
- The default folder to synchronize.
Syncthing will also fire up a browser page at http://127.0.0.1:8384 for monitoring and configuration.
Changing the user of init service
User and group with which Syncthing creates and modifies the synced files, can be changed by uncommenting the following lines in /etc/conf.d/syncthing:
Syncing files with Android
If files are shared with Android, make sure to enable "Ignore Permissions" in the advanced tab. This option disables comparing and syncing file permissions and is useful on systems with nonexistent or custom permissions (e.g. FAT, exFAT, Synology, Android).
Headless syncthing with ssh tunnel
The easiest thing to do is reverse proxy ssh to access the config. It is in the documentation:
ssh -L 9090:localhost:8384 <name>@<ip>
Now the page http://localhost:9090 can be opened on the computer and make edits to the browser page.
Syncthing provides a number of man pages:
- Rsync — a powerful file sync program capable of efficient file transfers and directory synchronization.