Posted by on the 31st of January, 2022 at 11:50 am under 컴퓨터.  This post has no comments.

DS-216+II 에서 아직 DSM6을 쓰고 있다. 가장 큰 이유는 Serviio와 Syncthing이 DSM7을 지원하지 않기 때문이다. 이 중 Serviio는 Synology package 대신 Docker를 이용하는 방식으로 바꿨다. Syncthing도 Docker로 옮겨야지 생각했는데 설정을 어떻게 옮길지 몰라 망설이고 있었다.

그런데 지금 쓰는 Syncthing은 Synology community에서 제공하는 것으로 이미 DSM7을 지원하고 있었다. (https://github.com/SynoCommunity/spksrc/issues/4524) 이 패키지를 계속 쓸까 했지만 Docker를 써보니 OS 버전과 무관하게 쓸 수 있는 점이 더 나아 보여서 Docker로 옮기기로 했다.

옮기기 위해 확인했던 것

  • Syncthing 설정파일 위치
    • /volume1/@appstore/syncthing/var
    • user: sc-syncthing, group: syncthing
  • Docker의 syncthing 설정파일 위치
    • /volume1/docker/syncthing/config
    • user: 1000, group: 1000

옮기는 과정 정리

  1. Syncthing에서 모든 동기화 설정 Pause
  2. ssh로 접속해서 /volume1/@appstore/syncthing 디렉토리 백업
  3. 패키지 센터에서 Syncthing 제거
  4. 사용자 syncthing, 그룹 syncthing 추가
  5. Docker에 syncthing 추가
    • UID, GID는 각각 사용자 syncthing, 그룹 syncthing으로 지정
    • 호스트 네트워크 사용
    • docker/syncthing -> /var/syncthing 으로 마운트
    • 동기화 볼륨 마운트
  6. docker/syncthing 디렉토리에 백업했던 내용 복사
  7. 파일 소유권 변경
  8. Syncthing docker 시작
  9. 동기화 확인

 



* Required

The URI to TrackBack this entry is:
https://bmp.pe.kr/blog/index.php/2022/01/31/dsm7-%ec%84%a4%ec%b9%98-%ec%a4%80%eb%b9%84-syncthing-docker%eb%a1%9c-%ec%98%ae%ea%b8%b0%ea%b8%b0/trackback/