Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| syncthing [2022/02/11 00:53] – overhaul, added note about bug atari | syncthing [2025/04/08 16:17] (current) – peterbozso | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| ==== Initial setup ==== | ==== Initial setup ==== | ||
| - | First, | + | First, enable Syncthing on all the Batocera machines you want to use for saves synchronization. |
| + | |||
| + | On each machine with Batocera | ||
| + | |||
| + | | ||
| + | |||
| + | On each machine | ||
| | | ||
| - | Once this is done, reboot | + | Once this is done, reboot Batocera. When Batocera is back up, on another computer on the same local network, open a web browser to '' |
| You will have a Synthing web UI where the configuration process start. | You will have a Synthing web UI where the configuration process start. | ||
| Line 34: | 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/ | - 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/ | ||
| - | In Batocera **v33**, if **ENFORCE SECURITY** is " | + | In Batocera **v33**, if **ENFORCE SECURITY** is " |
| + | |||
| + | 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 '' | ||
| </ | </ | ||
| - | - 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. You can add a friendly name for each machine, internally Syncthing identifies them with a self-generated '' | + | - 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 '' |
| - Now that we have our cluster of Syncthing nodes, we can configure the folders that need to be synchronized across them. In our example here, we want to synchronize the games save files in ''/ | - Now that we have our cluster of Syncthing nodes, we can configure the folders that need to be synchronized across them. In our example here, we want to synchronize the games save files in ''/ | ||
| - Then on the " | - Then on the " | ||
| - You need to repeat that on all nodes, but if your nodes are on the same network, they might be auto-discovered and announce their shared folders to the other nodes to provide a one-click easy addition.\\ {{:: | - You need to repeat that on all nodes, but if your nodes are on the same network, they might be auto-discovered and announce their shared folders to the other nodes to provide a one-click easy addition.\\ {{:: | ||
| - | - If you run Batocera on a PC x86_64, as well as other SBC, there might be save folders you want to ignore for the synchronization. Typically, flatpak and Windows games aren't necessary on a SBC and eat up quite a lot of storage. So, you can define some patterns that you want to ignore. On my PC x86_64, I put '' | + | - If you run Batocera on a PC x86_64, as well as other SBC, there might be save folders you want to ignore for the synchronization. Typically, flatpak and Windows games aren't necessary on a SBC and eat up quite a lot of storage. So, you can define some patterns that you want to ignore. On my PC x86_64, I put '' |
| + | The ignore syntax is very powerful, its full documentation is available at https:// | ||
| + | </ | ||
| - Once the shares are configured, you should see on the UI a progress for the initial synchronization. Depending on the size of your shared files, it might take some time, but you can follow the process on this screen.\\ {{:: | - Once the shares are configured, you should see on the UI a progress for the initial synchronization. Depending on the size of your shared files, it might take some time, but you can follow the process on this screen.\\ {{:: | ||
| Line 57: | Line 70: | ||
| * **Open the Syncthing command line via SSH when ENFORCE SECURITY is enabled:** '' | * **Open the Syncthing command line via SSH when ENFORCE SECURITY is enabled:** '' | ||
| * **Run the background service manually:** '' | * **Run the background service manually:** '' | ||
| + | |||
| + | ===== Advanced configuration ===== | ||
| + | |||
| + | Syncthing' | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | In case something goes wrong with Syncthing, a useful log to check is at ''/ | ||
| + | |||
| + | Further help can be found at [[https:// | ||
| + | |||
| + | ===== Generic cloud backup ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | The use-case of this solution is very similar to [[: | ||
| + | |||
| + | This solution uses [[https:// | ||
| + | |||
| + | A detailed description of how this works and setup instructions for it is on [[https:// | ||
| + | |||
- syncthing.1644540799.txt.gz
- Last modified: 4 years ago
- by atari