Bi directional Folder Synchronization using Sync thing - LCAS/Cluster_wiki GitHub Wiki
install & start syncthing on your local machine:
- download and install from https://syncthing.net/ (note the native gui options, snyctrayzor works well on windows)
- start syncthing and open browser on local machine: http://localhost:8384
start & setup syncthing on the login node:
- ssh to the login node:
ssh lch01 -L 9384:localhost:8384
-
note: this forwards the port from localhost(@lch01):8384 to localhost:9384
- execute syncthing:
syncthing
- open browser on local machine: http://localhost:9384
- go to settings and change the port to something else (others may want to use syncthing aswell, we can't all use the default port 8384)
note: the port 8384 is already blocked, change it manually using the config file at
~/.config/syncthing/config.xml
and restart syncthing
add devices & configure folder sync
- now that you have both syncthing frontends open, add the local device id to the remote syncthing instance
- accept the new device on the local syncthing instance
- add a local folder to the sync options at your local syncthing and share it with the remote device
- accept the folder at the remote
further options
- enabling file versioning
- adding ignore patterns
- only syncing uni-directional
- target sync folder location
- starting the remote syncthing in tmux so it stays active after logout