tech:notes_syncthing
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_syncthing [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_syncthing [2025/09/13 16:35] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Notes Syncthing | + | # Notes Syncthing |
| Voir : | Voir : | ||
| Ligne 8: | Ligne 9: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| Voir aussi : | Voir aussi : | ||
| * '' | * '' | ||
| + | * **Ksync** qui utilise Syncthing pour synchroniser les containers (containers ou k8s) | ||
| - | < | + | |
| + | ~~~bash | ||
| apt-get update | apt-get update | ||
| apt-get install syncthing | apt-get install syncthing | ||
| adduser --group --system syncthing --home / | adduser --group --system syncthing --home / | ||
| - | </ | + | ~~~ |
| ------ | ------ | ||
| Sur A | Sur A | ||
| - | < | + | ~~~bash |
| syncthing --device-id | syncthing --device-id | ||
| - | </ | + | ~~~ |
| Sur B | Sur B | ||
| - | < | + | ~~~bash |
| syncthing --device-id | syncthing --device-id | ||
| - | </ | + | ~~~ |
| Sur A | Sur A | ||
| - | < | + | ~~~bash |
| syncthing cli config devices add --device-id $DEVICE_ID_B | syncthing cli config devices add --device-id $DEVICE_ID_B | ||
| - | </ | + | ~~~ |
| Sur B | Sur B | ||
| - | < | + | ~~~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 | ||
| - | </ | + | ~~~ |
| Sur A | Sur A | ||
| - | < | + | ~~~bash |
| mkdir ~/ | mkdir ~/ | ||
| Ligne 56: | Ligne 60: | ||
| syncthing cli config folders list | syncthing cli config folders list | ||
| - | </ | + | ~~~ |
| Sur B | Sur B | ||
| - | < | + | ~~~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 | ||
| - | </ | + | ~~~ |
| - | == Service | + | ## Service |
| - | === Service SystemD Lingering | + | ### Service SystemD Lingering |
| Source : https:// | Source : https:// | ||
| - | + | '' | |
| - | <file ini ~/ | + | ~~~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 | ||
| - | </ | + | ~~~ |
| - | == Autres | + | ## Autres |
| - | < | + | ~~~ |
| [ZUPOI] 13:18:34 INFO: TCP listener ([:: | [ZUPOI] 13:18:34 INFO: TCP listener ([:: | ||
| 2024/10/01 13:18:34 connection doesn' | 2024/10/01 13:18:34 connection doesn' | ||
| [ZUPOI] 13:18:34 INFO: QUIC listener ([:: | [ZUPOI] 13:18:34 INFO: QUIC listener ([:: | ||
| - | </ | + | ~~~ |
| - | / | + | '' |
| - | < | + | ~~~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:// | # https:// | ||
| Ligne 125: | Ligne 129: | ||
| # | # | ||
| - | </ | + | ~~~ |
| Activer inotify | Activer inotify | ||
| - | < | + | ~~~bash |
| curl –s http:// | curl –s http:// | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~javascript |
| { | { | ||
| " | " | ||
| Ligne 140: | Ligne 144: | ||
| " | " | ||
| } | } | ||
| - | </ | + | ~~~ |
| Source : https:// | Source : https:// | ||
| Ligne 150: | Ligne 154: | ||
| ~/ | ~/ | ||
| - | < | + | ~~~xml |
| <!-- Changer à false --> | <!-- Changer à false --> | ||
| < | < | ||
| Ligne 169: | Ligne 173: | ||
| <!-- Changer gui enabled à " | <!-- Changer gui enabled à " | ||
| <gui enabled=" | <gui enabled=" | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| env GOMAXPROCS=2 syncthing -no-browser | env GOMAXPROCS=2 syncthing -no-browser | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| find / | find / | ||
| - | </ | + | ~~~ |
| - | == Ignore | + | ## Ignore |
| - | <code - .stignore> | + | '' |
| + | ~~~ | ||
| .git/ | .git/ | ||
| - | </ | + | ~~~ |
tech/notes_syncthing.1742825205.txt.gz · Dernière modification : de 127.0.0.1
