Basically, Syncthing uses peer-to-peer architecture, meaning that each device attached to your Syncthing network retains copies of the files in your shared folders and pushes new content whenever any changes have been made.
![syncthing linux syncthing linux](https://techviewleo.com/wp-content/uploads/2020/09/Install-and-use-syncthing-file-synchronization-on-linux-20-06.png)
It is capable of synchronizing files across different devices within a local network or even across remote devices with the help of an Internet connection. Please share your experience using Syncthing in the comment section.Syncthing is a multiplatform file synchronization tool. You can use and sync more than two devices and be up to date with directories on all machines.
#Syncthing linux how to
In this tutorial, we learned how to install Syncthing for synchronizing directories on Ubuntu 20.04. Loaded: loaded disabled vendor preset: enabled)Īctive: active (running) since Wed 13:46:53 UTC 1h 4min agoĬGroup: /usr/bin/syncthing -no-browser -gui-address=45.79.208.51:8384 -no-restart -logflags=0 - Syncthing - Open Source Continuous File Synchronization for linoxide.Go to the desired device either on server1 or server2 and check systemctl service status to see how this works on the backend with the following command. Next Go to Actions > Settings > GUI to set up a username, password, and enable the option 'Use HTTPS for GUI.Ĭlick on the Save button, and you will be redirected to the Syncthing login page that will ask to put new credentials for login. Syncthing Web Interface uses port 8384.Īfter login, you should get the following messages. Open your web browser and access the Syncthing Web Interface with URLs. NOTE: Repeat these same steps to the other server. The Synchting service listen on port 8384, you can verify using the ss command.
![syncthing linux syncthing linux](https://images.techhive.com/images/article/2017/05/syncthing-linux-add-folder-100721586-large.jpg)
![syncthing linux syncthing linux](http://1.bp.blogspot.com/-s7vPrBsNRZ0/VTe1rQgYnjI/AAAAAAAAWN0/4FXrMXxj4Dc/s1600/syncthing-gtk.png)
systemctl start the status of the Syncthing service: systemctl status service should be active (running). Now reload the systemd daemon to apply the configuration: systemctl daemon-reloadĪfter the daemon is reloaded, start the Synchting service that pointing to your user with the following command. In part, in line -gui-address="0.0.0.0:8384" add your Public IP address of the first server and leave the same 8384 port. nano the following lines to the configuration file: Description=Syncthing - Open Source Continuous File Synchronization for %I Documentation=man:syncthing(1) After=network.target 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 WantedBy=multi-user.target The next step is to create a systemd unit file, for managing the Syncthing service.Ĭreate a file in /etc/systemd/system/ with the following command.
![syncthing linux syncthing linux](https://ninghao.net/files/screenshot/syncthing-02-download-syncthing.png)
NOTE: You will need to repeat these same installation steps on the other server.