通过 Syncthing 实现多台服务器的数据同步
2023-4-30
| 2024-4-17
字数 230阅读时长 1 分钟
type
status
date
slug
summary
tags
category
icon
password
AI summary
Last edited time
Apr 17, 2024 05:59 AM
目前管理了好几台服务器,各服务器之间有一些文件需要共享,之前使用过 seafile,感觉不太好用,现在切换为 syncthing 实现文件同步。

操作流程

docker-compose.yml

命令行启动

应用同步配置

进入设置
notion image
设置设备名
notion image
安全起见,设置用户名密码
notion image
获取设备 ID
notion image
notion image
增加远程设备
notion image
notion image

常见问题

移动目录

比如原先共享的目录存放在 /data/pathA/devops,想要移动到路径 /data/pathB/devops
  1. 停止 syncthing
  1. 修改配置文件 /config/config.xml
    1. 移动 /data/pathA/devops/data/pathB/devops
    1. 启动 syncthing

    📎 参考文章

     
  2. 文件同步
  3. Syncthing
  4. 系统开发实践-Spring Cloud 异常封装及传递处理系统开发实践-前后端交互规范
    Loading...