syncthing
This commit is contained in:
parent
80dfb46e58
commit
dfe9d2ec95
83
Syncthing.md
83
Syncthing.md
@ -1,10 +1,87 @@
|
||||
## Syncthing
|
||||
# Syncthing
|
||||
|
||||
```bash
|
||||
sudo apt-get install syncthing
|
||||
systemctl --user start syncthing
|
||||
systemctl --user enable syncthing
|
||||
```
|
||||
## Avviare la sincronizzazione con Systemd
|
||||
|
||||
```bash
|
||||
sudo vim /etc/systemd/system/syncthing@.service
|
||||
```
|
||||
|
||||
Quindi inserire il seguente testo:
|
||||
|
||||
```
|
||||
[Unit]
|
||||
Description=Syncthing - Open Source Continuous File Synchronization for %I
|
||||
Documentation=man:syncthing(1)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=%i
|
||||
ExecStart=/usr/bin/syncthing -no-browser -gui-address="0.0.0.0:8384" -no-restart -logflags=0
|
||||
Restart=on-failure
|
||||
SuccessExitStatus=3 4
|
||||
RestartForceExitStatus=3 4
|
||||
|
||||
# Hardening
|
||||
ProtectSystem=full
|
||||
PrivateTmp=true
|
||||
SystemCallArchitectures=native
|
||||
MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
Abilitare il servizio:
|
||||
|
||||
```
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start syncthing@$USER
|
||||
sudo systemctl enable syncthing@$USER
|
||||
```
|
||||
## Configurare la sincronizzazione
|
||||
|
||||
Collegarsi, tramite browser all'indirizzo:
|
||||
|
||||
```
|
||||
https://127.0.0.1:8384
|
||||
```
|
||||
e impostare un utente e una password di accesso.
|
||||
|
||||

|
||||
|
||||
Quindi dal dispositivo principale, creare la cartella che dovrà essere condivisa con quelli secondari:
|
||||
|
||||

|
||||
|
||||
È possibile scegliere se monitorare i cambiamenti e quindi avere una sorta di versioning sui file. Il dispositivo principale può inviare solamente, ricevere o
|
||||
entrambi i dispositivi possono ricevere/inviare. Da scegliere a seconda dei casi
|
||||
|
||||

|
||||
|
||||
Aggiungere il dispositivo remoto tramite il suo ID:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Dare quindi un nome identificativo al device:
|
||||
|
||||

|
||||
|
||||
Ripetere la procedura, affinché tutti i dispositivi siano connessi:
|
||||
|
||||

|
||||
|
||||
Verificare che la cartella e i file ivi contenuti siano effettivamente sincronizzati:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Per una maggior sicurezza, la cartella può essere sincronizzata anche con NextCloud.
|
||||
|
||||
## Collegamenti
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 95 KiB |
Binary file not shown.
Before Width: | Height: | Size: 52 KiB |
Binary file not shown.
Before Width: | Height: | Size: 51 KiB |
Binary file not shown.
Before Width: | Height: | Size: 102 KiB |
Loading…
x
Reference in New Issue
Block a user