What is Syncthing
Syncthing is an open-source, decentralized file synchronization tool designed to facilitate secure and private data sharing across multiple devices. Developed in Go, Syncthing operates on a peer-to-peer model, allowing users to sync files directly between their devices without relying on a central server. This approach enhances privacy and security, as data is not stored on third-party servers. Syncthing supports various platforms, including Windows, macOS, Linux, Android, and others. Users can define folders for synchronization, and changes to files are automatically and securely propagated across connected devices. The software employs end-to-end encryption, ensuring that only authorized devices can access shared data. With its user-friendly interface and commitment to user privacy, Syncthing has gained popularity as a reliable and decentralized alternative for file synchronization and collaboration.
Install Syncthing
apt update && apt upgrade -y
apt-get install gnupg2 curl apt-transport-https -y
#download and add the release key:
curl -s https://syncthing.net/release-key.txt | apt-key add -
#add the Syncthing repository:
echo "deb https://apt.syncthing.net/ syncthing release" > /etc/apt/sources.list.d/syncthing.list
#update and install the Syncthing:
apt-get update -y
apt-get install syncthing -y
#Create a Systemd Unit File:
nano /etc/systemd/system/syncthing@.service
#paste
[Unit]
Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=man:syncthing(1)
After=network.target
[Service]
User=%i
ExecStart=/usr/bin/syncthing -no-browser -gui-address="0.0.0.0:8384" -no-restart -logflags=0
Restart=on-failure
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start syncthing@root
systemctl status syncthing@root
ss -antpl | grep 8384