syncthing 在某些网络环境下(如使用了代理等情况),可靠性存疑,用 rsync 比较靠谱。
ubuntus上安装配置 syncthing
apt-get install syncthing
apt-get install supervisor
supervisorctl reload
进程守护配置, vi /etc/supervisor/conf.d/syncthing.conf
[program:syncthing]
command = /usr/bin/syncthing -no-browser -home="/root/.config/syncthing"
directory = /root
autorestart = True
user = root
environment = STNORESTART="1", HOME="/root"
管理:
添加:
sudo supervisorctl update
启动
supervisorctl start syncthing
重启
supervisorctl restart syncthing
停止
supervisorctl stop syncthing
配置 syncthing:vi /root/.config/syncthing/config.xml
<address>127.0.0.1:8384</address>
修改为 <address>0.0.0.0:8384</address>
重启: supervisorctl restart syncthing
windows 端使用 syncthing
SyncTrayzor: https://github.com/canton7/SyncTrayzor/releases
下载: SyncTrayzorPortable-x64.zip