æè¿ãªãã¨ãªãorg-modeã§ã¿ã¹ã¯ç®¡çããã¦ãã¾ãã1å°ã®ãã·ã³ããã¿ã¹ã¯ç®¡çããã¦ããå ã¯æ®éã«å¿«é©ãªãã§ãããè¤æ°ã®ãã·ã³ã§ã¿ã¹ã¯ç®¡çããã ãã¨ããã¡ã¤ã«åæã課é¡ã«ãªãã¾ããSambaï¼WebDAVï¼sshfsï¼Google DriveãOneDriveãNextCloudãªãããé¸æè¢ã«ä¸ãã£ã¦ãã¾ãããLinuxã§ãã¦ã³ãããã®ãé¢åãªã®ã§ãä»åã¯Syncthingã§åæãã¦ã¿ããã¨æãã¾ãã
Syncthing
OSSã®ãã¡ã¤ã«åæãã¼ã«ã§ããLinuxãMacOSãWindowsãAndroidã対å¿ãã¦ãã¾ãã
ã³ãã³ãããè¨å®ãå¯è½ã§ãããWebUIãåãã¦ãã¦ãã©ã¦ã¶ãããè¨å®ãã§ãã¾ãããã©ã«ããã¨ã«èª°ã«å ±æããããå ±æããã¨ãã«ãã¹ã¯ã¼ããå¿ è¦ãã ãªã©ç´°ããè¨å®ã§ãã¾ãã
使ã£ã¦ã¿ã
ä½ã¯ã¨ããã使ã£ã¦ã¿ã¾ãããã
ä»åã¯Mac miniã¨Mac miniã®ä¸ã§èµ·åããUbuntu 24.04ã®ç°å¢ã§ãã¡ã¤ã«ãåæãã¦ã¿ã¾ãã
ã¾ãã¯Macãã
brew install syncthing
ã¤ã³ã¹ãã¼ã«ã¯ããã ãã§ããSyncthingãèµ·åããã«ã¯ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ã§syncthing
ã³ãã³ããå®è¡ããããbrewã®ãµã¼ãã¹ã¨ãã¦èµ·åãã¾ããä»åã¯ããã¯ã°ã©ã¦ã³ãã§èµ·åãããã®ã§brewã§å®è¡ãã¾ãã
brew services start syncthing
Syncthingãèµ·åã§ããããWebUIã«ã¢ã¯ã»ã¹ãã¦è¨å®ç»é¢ãè¦ãããã確èªãã¦ã¿ã¦ãã ããã
ååèµ·åæã¯ä½¿ç¨ç¶æ³ã®ã¬ãã¼ãã«ã¤ãã¦èããã¾ãã
ãã©ãããã©ã¼ã ããã©ã«ãã¼ã®ãµã¤ãºãã¢ããªã±ã¼ã·ã§ã³ã®ãã¼ã¸ã§ã³ãªã©ãéè¨ãããã¡ãã§å ¬éãããããã§ããå ¬éããã¦å°ãæ¹ã¯ããããããé¸æãã¾ãããã
ãã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ããè¨å®ãã®è¨å®ã¯å¿ è¦ã«å¿ãã¦è¨å®ãã¦ãã ããã
次ã®è¨å®ã§ãã®ãã·ã³ã«ã»ããããã¦ããIDãå¿ è¦ã«ãªãã®ã§ãå³ä¸ã®ã¡ãã¥ã¼ãããIDã表示ããé¸ããã§ãIDãã³ãã¼ãã¦ããã¦ãã ããã
Ubuntuã§
ã次ã«Ubuntuã«ã¤ã³ã¹ãã¼ã«ãã¾ãã
sudo apt install syncthing
ç¹æ¨©ã¦ã¼ã¶ã¼ã§èª°ãå ±æã§ããããªã©ãã³ã³ããã¼ã«ããå ´åã¯ãã¡ã
sudo systemctl enable syncthing@<username>.service sudo systemctl start syncthing@<username>.service
systemctl enable --now
ã使ã£ã¦æå¹åã¨åæã«ãµã¼ãã¹ãéå§ãã¦ãããã§ãã
ç¹å®ã®ã¦ã¼ã¶ã¼ã ããèµ·åã§ããã°ããå ´åã¯ãã¡ã
systemctl --user enable syncthing.service systemctl --user start syncthing.service
ç§ã¯å¾è ã§èµ·åãè¨å®ãã¾ãã
èµ·åã«æåããã¨~/Sync
ãã£ã¬ã¯ããªãä½æããã¦ããã¯ãã§ãããã¡ããããã©ã«ãã®å
±æãã£ã¬ã¯ããªã«ãªãã¾ãã
ã©ã®ãããªå¤ãã»ããããã¦ãããã¯ä»¥ä¸ã®ã³ãã³ãã§ç¢ºèªã§ãã¾ãã
syncthing cli config folders default path get
ãã®ãã£ã¬ã¯ããªãå¤æ´ããå ´åã¯ãã¡ã
syncthing cli config folders default path set /path/to/sync/folder
åæå ã®ããã¤ã¹ãç»é²ãã¾ãã
syncthing cli config devices add --device-id <WebUIã§ã³ãã¼ããID>
å ±æãããã©ã«ãã«ãããã¤ã¹ãç»é²ãã¾ãã
syncthing cli config folders default devices add --device-id <WebUIã§ã³ãã¼ããID>
è¡ã£ããæ¥ãã
ç»é²ãå®äºããããå ã»ã©ç¢ºèªããWebUIã«æ»ãã¨ãæ°è¦ããã¤ã¹ãã®ãããã¢ããï¼ã表示ããã¦ããã¨æãã¾ãã
ãã¡ãããããã¤ã¹ã®è¿½å ãè¡ãªã£ã¦ãã ããã
ãããæ°è¦ããã¤ã¹ãã表示ããã¦ããªãå ´åã¯ã以ä¸ã®ã³ãã³ããæ¥ç¶å ï¼ä»åã®å ´åã¯Ubuntuï¼ã§å®è¡ãã¦IDãã³ãã¼ãã¦ãã ããã
syncthing -device-id
WebUIã«æ»ã£ã¦ãæ¥ç¶å ããã¤ã¹ã追å ãããã³ãã¼ããIDããããã¤ã¹IDãã«ãã¼ã¹ããã¦æ¥ç¶ãã¦ãã ããã
ç»åã«ãåã£ã¦ãã¾ããããè¿ãã«æ¤åºããã以ä¸ã®ããã¤ã¹ã®ä¸ã¤ãé¸æã§ãã¾ãããã¨ããé ç®ã«ããã¤ã¹ãåºã¦ãã¦ããããããã¾ããããã¡ããã¯ãªãã¯ãã¦ããã¤ã¹IDãæå®ãã¦ãOKã§ãã
ãã©ã«ãã¼ã®è¨å®ããã¦ããã¾ãã
WebUIãããDefault Folderããã¯ãªãã¯ããã¨ç·¨éãã¿ã³ãåºã¦ããã®ã§ç·¨éã«é²ã¿ã¾ãã
å ±æã¿ãã«é²ãã¨èª°ã«å ±æããããé¸æã§ããã®ã§ãå ±æãããããã¤ã¹ã«ãã§ãã¯ãã¤ãã¦ä¿åãã¾ãã
ããã§è¨å®ãã§ãã¾ããã®ã§ã~/Sync
ã«ãã¡ã¤ã«ã追å ãããåé¤ããããã¦åæãããã確èªãã¦ã¿ã¦ãã ããã
ã¾ã¨ã
SambaãWebDAVã¯è¨å®èªä½ãé¢åã§ããããSyncthingã¯èµ·åãã¦ããã¤ã¹ãç»é²ããã¨ãã使ããããã«ãªãã®ã§ããªã楽ã§ãããsshfsã§ãããã£ãã¨ããã°ããã£ãã®ã§ãããSyncthingãããä½ãèããã«åæã§ããã®ã¯ããã§ããããã°ãã使ãã¾ãã