Syncthing

来自Gea-Suan Lin's Wiki
Gslin讨论 | 贡献2020年8月14日 (五) 11:27的版本 →‎設定
跳到导航 跳到搜索

Syncthing是一套资料同步软体。

安装

Ubuntu下可以透过apt repository安装[1]

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -; echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list; sudo apt update; sudo apt install -y syncthing

设定

Syncthing预设会用到22000/tcp21027/udp,可以分开设定,或是直接使用Syncthing包装好的设定[2]

sudo ufw allow syncthing

在开机时自动执行[3],这边是透过systemd的方式:

sudo systemctl enable syncthing@myuser.service; sudo systemctl start syncthing@myuser.service

接下来可以连到本机端的管理界面上操作:

参考资料

  1. Downloads. [2020-08-14] (English). 
  2. Firewall Setup. [2020-08-14] (English). 
  3. Starting Syncthing Automatically. [2020-08-14] (English). 

外部连结