Outils pour utilisateurs

Outils du site


tech:notes_syncthing

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_syncthing [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:notes_syncthing [2025/09/13 16:35] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 {{tag>Brouillon}} {{tag>Brouillon}}
  
-Notes Syncthing+Notes Syncthing
  
 Voir : Voir :
Ligne 8: Ligne 9:
 * https://man.archlinux.org/man/syncthing-faq.7.en * https://man.archlinux.org/man/syncthing-faq.7.en
 * https://djan-gicquel.fr/IMG/pdf/syncthing_utilisation.pdf * https://djan-gicquel.fr/IMG/pdf/syncthing_utilisation.pdf
 +* https://laboiteajb.fr/syncthing/
  
 Voir aussi : Voir aussi :
 * ''rclone bisync'' * ''rclone bisync''
 +* **Ksync** qui utilise Syncthing pour synchroniser les containers (containers ou k8s)
  
-<code bash>+ 
 +~~~bash
 apt-get update apt-get update
 apt-get install syncthing apt-get install syncthing
  
 adduser --group --system syncthing --home /usr/local/var/lib/syncthing adduser --group --system syncthing --home /usr/local/var/lib/syncthing
-</code>+~~~
  
 ------ ------
  
 Sur A Sur A
-<code bash>+~~~bash
 syncthing --device-id syncthing --device-id
-</code>+~~~
  
 Sur B Sur B
-<code bash>+~~~bash
 syncthing --device-id syncthing --device-id
-</code>+~~~
  
 Sur A Sur A
-<code bash>+~~~bash
 syncthing cli config devices add --device-id $DEVICE_ID_B syncthing cli config devices add --device-id $DEVICE_ID_B
-</code>+~~~
  
 Sur B Sur B
-<code bash>+~~~bash
 syncthing cli config devices add --device-id $DEVICE_ID_A syncthing cli config devices add --device-id $DEVICE_ID_A
 #syncthing cli config folders $FOLDER_ID devices add --device-id $DEVICE_ID_B #syncthing cli config folders $FOLDER_ID devices add --device-id $DEVICE_ID_B
-</code>+~~~
  
  
  
 Sur A Sur A
-<code bash>+~~~bash
 mkdir ~/DATA_SYNCALL mkdir ~/DATA_SYNCALL
  
Ligne 56: Ligne 60:
  
 syncthing cli config folders list syncthing cli config folders list
-</code>+~~~
  
 Sur B Sur B
-<code bash>+~~~bash
 syncthing cli config folders list syncthing cli config folders list
 #syncthing cli config devices $DEVICE_ID_A auto-accept-folders set true #syncthing cli config devices $DEVICE_ID_A auto-accept-folders set true
Ligne 67: Ligne 71:
  
 syncthing cli config folders $FOLDER_ID devices add --device-id $DEVICE_ID_A syncthing cli config folders $FOLDER_ID devices add --device-id $DEVICE_ID_A
-</code>+~~~
  
  
  
  
-== Service+## Service
  
-=== Service SystemD Lingering+### Service SystemD Lingering
  
 Source : https://github.com/syncthing/syncthing/blob/main/etc/linux-systemd/user/syncthing.service Source : https://github.com/syncthing/syncthing/blob/main/etc/linux-systemd/user/syncthing.service
  
- +''~/.config/systemd/user/syncthing.service'' 
-<file ini ~/.config/systemd/user/syncthing.service>+~~~ini
 [Unit] [Unit]
 Description=Syncthing - Open Source Continuous File Synchronization Description=Syncthing - Open Source Continuous File Synchronization
Ligne 104: Ligne 108:
 [Install] [Install]
 WantedBy=default.target WantedBy=default.target
-</file>+~~~
  
  
-== Autres+## Autres
  
  
-<code>+~~~
 [ZUPOI] 13:18:34 INFO: TCP listener ([::]:22000) starting [ZUPOI] 13:18:34 INFO: TCP listener ([::]:22000) starting
 2024/10/01 13:18:34 connection doesn't allow setting of receive buffer size. Not a *net.UDPConn?. See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details. 2024/10/01 13:18:34 connection doesn't allow setting of receive buffer size. Not a *net.UDPConn?. See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
 [ZUPOI] 13:18:34 INFO: QUIC listener ([::]:22000) starting [ZUPOI] 13:18:34 INFO: QUIC listener ([::]:22000) starting
-</code>+~~~
  
  
-/etc/sysctl.d/80-net-core-xmem_max.conf +''/etc/sysctl.d/80-net-core-xmem_max.conf'' 
-<file bash /etc/sysctl.d/80-net-core-xmem_max.conf>+~~~bash
 # Bump maximum receive buffer size to roughly 7.5 MB for Syncthing - as per # Bump maximum receive buffer size to roughly 7.5 MB for Syncthing - as per
 # https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size # https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size
Ligne 125: Ligne 129:
  
 #fs.inotify.max_user_watches=409600 #fs.inotify.max_user_watches=409600
-</file>+~~~
  
 Activer inotify Activer inotify
  
-<code bash>+~~~bash
 curl –s http://ipduserveur:port/rest/system | json_pp curl –s http://ipduserveur:port/rest/system | json_pp
-</code>+~~~
  
-<code javascript>+~~~javascript
 { {
 "alloc": 32147752, # allocated memory, in use "cpuPercent": 0.669829340548344, "alloc": 32147752, # allocated memory, in use "cpuPercent": 0.669829340548344,
Ligne 140: Ligne 144:
 "sys": 66463976 # allocated memory, total "sys": 66463976 # allocated memory, total
 } }
-</code>+~~~
  
 Source : https://www.it-connect.fr/installation-et-configuration-de-syncthing/ Source : https://www.it-connect.fr/installation-et-configuration-de-syncthing/
Ligne 150: Ligne 154:
 ~/.config/syncthing/config.xml and find ''relaysEnabled''. Set its value ''false'' ~/.config/syncthing/config.xml and find ''relaysEnabled''. Set its value ''false''
  
-<code xml>+~~~xml
 <!-- Changer à false --> <!-- Changer à false -->
 <relaysEnabled>false</relaysEnabled> <relaysEnabled>false</relaysEnabled>
Ligne 169: Ligne 173:
 <!-- Changer gui enabled à "false" --> <!-- Changer gui enabled à "false" -->
 <gui enabled="false" tls="false" debugging="false"> <gui enabled="false" tls="false" debugging="false">
-</code>+~~~
  
-<code bash>+~~~bash
 env GOMAXPROCS=2 syncthing -no-browser env GOMAXPROCS=2 syncthing -no-browser
-</code>+~~~
  
-<code bash>+~~~bash
 find /path/to/folder/to/force/sync -type f -print0 | xargs -0 -n1 touch find /path/to/folder/to/force/sync -type f -print0 | xargs -0 -n1 touch
-</code>+~~~
  
-== Ignore+## Ignore
  
-<code - .stignore>+''.stignore'' 
 +~~~
 .git/ .git/
-</code>+~~~
  
  
  
tech/notes_syncthing.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki