Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syncthing [2023/09/23 00:18] – [Initial setup] Update for v38 maximumentropysyncthing [2025/04/08 16:17] (current) peterbozso
Line 22: Line 22:
 First, enable Syncthing on all the Batocera machines you want to use for saves synchronization.  First, enable Syncthing on all the Batocera machines you want to use for saves synchronization. 
  
-On each machine with Baotecera v38 and higher, execute the command:+On each machine with Batocera v38 and higher, execute the command:
  
    batocera-services enable syncthing    batocera-services enable syncthing
  
-On each machine with Baotecera v37 and lower, edit the ''/userdata/system/batocera.conf'' file and add:+On each machine with Batocera v37 and lower, edit the ''/userdata/system/batocera.conf'' file and add:
  
    system.syncthing.enabled=1    system.syncthing.enabled=1
Line 40: Line 40:
 Now let's move on to the configuration: Now let's move on to the configuration:
   - Settings: this is the main page where you can define a Syncthing name for your Batocera unit, and on the GUI tab you can put a login/password to protect access to this web configuration page on ''http://batocera:8384''. I would strongly encourage you to put a login and password in there.<WRAP center round help>   - Settings: this is the main page where you can define a Syncthing name for your Batocera unit, and on the GUI tab you can put a login/password to protect access to this web configuration page on ''http://batocera:8384''. I would strongly encourage you to put a login and password in there.<WRAP center round help>
-In Batocera **v33**, if **ENFORCE SECURITY** is "ON" then the Syncthing web UI <wrap em>cannot be accessed externally</wrap>. Disable this setting to regain access to it externally.+In Batocera **v33**, if **ENFORCE SECURITY** is "ON" then the Syncthing web UI cannot be accessed externally. To circumvent this, two options: 
 + 
 +1. Disable this setting to regain access to it externally
 + 
 +2. Or create a SSH tunnel from another machine. 
 +For example, on a Linux host you can ''ssh -L 3000:127.0.0.1:8384 root@batocera'' and it creates a SSH session with local port 3000 mapped to port 8384 on the Batocera machine. This way, within the SSH session once you are connected, you can go to ''http://127.0.0.1:3000/'' on your Linux host and it will show the Syncthing configuration UI on the Batocera machine. If you use Windows, Putty also has an option to create SSH tunnels.
 </WRAP>\\ {{::syncthing_2_settings_main.png?direct&720|}} </WRAP>\\ {{::syncthing_2_settings_main.png?direct&720|}}
   - Once you have this basic setup done on at least two Syncthing nodes (i.e. two Batocera machines with Synchthing on, or a Batocera + your central server for saves), you can create a cluster of Syncthing nodes, by telling each node which are the other machines where you want to share your saved files. Click **Add Remote Device...**. You can add a friendly name for each machine, internally Syncthing identifies them with a self-generated ''DeviceID''. This also is where you would set the **Introducer** option if connecting to an always-online NAS.\\ {{::syncthing_3_add_device.png?direct&720|}}   - Once you have this basic setup done on at least two Syncthing nodes (i.e. two Batocera machines with Synchthing on, or a Batocera + your central server for saves), you can create a cluster of Syncthing nodes, by telling each node which are the other machines where you want to share your saved files. Click **Add Remote Device...**. You can add a friendly name for each machine, internally Syncthing identifies them with a self-generated ''DeviceID''. This also is where you would set the **Introducer** option if connecting to an always-online NAS.\\ {{::syncthing_3_add_device.png?direct&720|}}
Line 75: Line 80:
  
 Further help can be found at [[https://docs.syncthing.net|Syncthing's documentation]]. Further help can be found at [[https://docs.syncthing.net|Syncthing's documentation]].
 +
 +===== Generic cloud backup =====
 +
 +https://gitlab.com/peterbozso/batocera-backup-service
 +
 +The use-case of this solution is very similar to [[:syncthing|Syncthing]], but the goal here is to utilize cloud storage (OneDrive, Google Drive, Dropbox, etc.) to back up your data. The important difference is that this is **upload only**; it does not synchronize data both ways. It is for continously cloning a single machine's userdata to the cloud service, so in case of a hardware failure/loss, a backup of the userdata can be easily restored.
 +
 +This solution uses [[https://rclone.org/|rclone]], which is shipped with Batocera and [[launch_a_script#services|Batocera's services feature]]. Because of the latter, it requires Batocera **v40** or higher.
 +
 +A detailed description of how this works and setup instructions for it is on [[https://gitlab.com/peterbozso/batocera-backup-service|peterbozso's batocera-backup-service repository]].
 +
  
  • syncthing.1695428289.txt.gz
  • Last modified: 3 years ago
  • by maximumentropy