Don't know how to sync /config and /backup now with the Syncthing addon.
jwinston100 opened this issue · 6 comments
I understand there have been changes to this addon due to changes in HA, and I looked through the various issues, but I cannot figure out now how to sync my /config and /backup folders like before. The previous synced folders now sync to the same names under /addon_configs/XXXXXXXX_syncthing/ instead of /. How do I tell the new Syncthing add on to map the folders off the root directory? Thanks.
Hi @jwinston100
The recent refactoring you mention is outlined in #450.
Nothing has changed with the backup
directory, it's still available to Synthing at /backup
, same as before.
But if you used to sync the /config
directory, this won't work anymore, since we don't mount HA's config
directory anymore, but the more modern addon_config
instead, which makes Syncthing's own config available at /config
, but none of the other HA config files.
We could also mount all_addon_configs
and homeassistant_config
, which would make the entire HA add-ons config available at /addon_configs
and Home Assistant's own config available at /homeassistant
to Syncthing. But honestly, I don't really see the use case to sync HA's config via Syncthing, there are better ways to edit config files. Do you think otherwise? If so, you might wanna chip in on #458.
I often edit my configuration.yaml, automations.yaml, scripts.yaml, etc. on my own computer which used to use Syncthing to synchronize my computer and my HA device. Is there any way to regain that functionality? Should I try to use an older version of the Syncthing addon? Thank you.
Is there any way to regain that functionality? Should I try to use an older version of the Syncthing addon?
Yes, you could switch back to v1.17.0 of the add-on, if you want.
We could certainly expose all_addon_configs
and homeassistant_config
to Syncthing in the future if there's user demand. I've added a comment to #458.
Thank you. I did revert the version to 1.17.0, and it is working as before now. I've turned off the auto-update feature as well. I'll add a comment there for my two cents and close this.
Sadly, I also had to revert, the main point was to sync the esphome folder.
But how do I do it on a new install. Copy the backup from the old version or is there also a way to download the package somehow?