ユーザ用ツール

サイト用ツール


サイドバー

Index

はじめてのおつかい






DokuWiki整形記法


PlayGround



serverapps:syncthing

syncthing

install(FreeBSD)

# pkg install syncthing
# cat /etc/rc.conf.local
syncthing_enable=YES
# service syncthing start

allow access from the network

    <gui enabled="true" tls="false" debugging="false">
        <address>127.0.0.1:8384</address>
     ↓
    <gui enabled="true" tls="false" debugging="false">
        <address>0.0.0.0:8384</address>

Windows

Chocolateyでインストール

> choco install synctrayzor

あれ、動かない

[monitor] 10:10:10 INFO: Log output saved to file "C:\Users\xxxxxxxx\AppData\Local\Syncthing\syncthing.log"
[start] 10:10:10 INFO: syncthing v1.18.1 "Fermium Flea" (go1.16.6 windows-amd64) teamcity@build.syncthing.net ...
[start] 10:10:10 WARNING: Failed to initialize config: config file version (37) is newer than supported version (35). If this is expected, use -allow-newer-config to ove

先に単体のsyncthingを動かしたんだが、そこで作られた設定ファイルの方がバージョンが新しいので起動しなかった模様 サクッと当該フォルダの中消して立ち上げたら大丈夫だった


同期

  • 同期する双方のPCで接続先デバイスとして登録
  • 同期するフォルダ→編集→共有で同期する接続先デバイスを選択する
  • 同期を開始するとtarget側で同期して良いか聞いてくるのでこちらもOK

これで行けるはず1)2)

除外

  • GUIから無視するファイル名に列挙
  • /Path/to/dir/.stignore に列挙
1)
FreeBSDだとsyncthingユーザで起動するためDefaultの/Syncディレクトリの作成に失敗するので注意
2)
当然Permissionも直す
serverapps/syncthing.txt · 最終更新: 2023/08/16 14:57 by hayashi