I use Syncthing on containers provided by a not-so-expensive GPU cloud hosting. The major drawback is that these containers have a short lifetime. So I frequently have to destroy a container and rebuild a new one. (Not possible to download it right now).
Problem: each time I rebuild a new container, I have a new ST DeviceID
, so I have to redo the config on the container + redo the config on my local machine (add the new DeviceID to my local machine, re-share the folder to this new DeviceID), etc.
All would be simplified if on the first run of ./syncthing
I could specify “Please reuse this existing DeviceID”:
./syncthing deviceid=ABCDEFG...XYZ
(there will never be a conflict between the 2 devices because when I do this on the new container, the old one is destroyed).
The gain would be that:
- I wouldn’t have to add a new DevideID on my local computer’s ST
- I woulnd’t have to re-share the local folder to a new device
- If the new container has the same DeviceID, then he will automatically discover “DeviceHomeComputer wants to share this folder with you, do you accept?” and I would just have to press Yes.
How to do this?