Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't know how to sync /config and /backup now with the Syncthing addon. #460

Closed
jwinston100 opened this issue Jan 14, 2024 · 6 comments · Fixed by #467 or #470
Closed

Don't know how to sync /config and /backup now with the Syncthing addon. #460

jwinston100 opened this issue Jan 14, 2024 · 6 comments · Fixed by #467 or #470
Labels
bug Something isn't working syncthing syncthing Addon

Comments

@jwinston100
Copy link

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.

@jwinston100 jwinston100 added the bug Something isn't working label Jan 14, 2024
@Poeschl Poeschl added the syncthing syncthing Addon label Jan 14, 2024
@Poeschl
Copy link
Owner

Poeschl commented Jan 14, 2024

Can you help me out here @salim-b?

@salim-b
Copy link
Contributor

salim-b commented Jan 14, 2024

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.

@jwinston100
Copy link
Author

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.

@salim-b
Copy link
Contributor

salim-b commented Jan 14, 2024

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.

@jwinston100
Copy link
Author

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.

@NODeeJay
Copy link

NODeeJay commented Mar 8, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syncthing syncthing Addon
Projects
None yet
4 participants