-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Synology DSM. Impossible to configure automatic backup. #136924
Comments
Hey there @hacf-fr, @Quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) synology_dsm documentation |
Hi @jlpouffier
|
Can we add better checks in the options flow to make sure the path we want to write to exists and that we can be confident that the config is correct? |
at the moment, the path will be created if not exist - checking the existence of the path would need further efforts in the lib to implement such a function, but would be possible. |
btw. the backup path is a relativ path on the selected shared folder, so no prefixing with |
I think having data_descriptions here would be nice to tell what to do, as in should you do |
these are the backup related strings - they need to be also referenced in the options-flow strings core/homeassistant/components/synology_dsm/strings.json Lines 24 to 33 in 773375e
|
my Synology backup was just created successfully, but I cant remember seeing an option to chose a dedicated folder.... |
missing translations for options-flow will be fixed with #136931 (suggestions for improvements are welcome!) |
@Mariusthvdb with the upcoming 2025.2 you will be able to use the Synology as a backup location, without the need to add it as a network drive to HA |
o but I am in the 2025.2 beta, and didnt see it s an option ( I have my Synology integration set up), so I figured Id add it as a share.... let me see how to get it in there without that update found it (thanks Joost), under the configure button of the Synology integration ... |
|
nice. if I may make 2 suggestions:
|
Is there a way to put the backups are the root level of the share folders (no path)? |
not at the moment - the backup path is mandatory, so one can store backups of multiple instances on the same nas
an example has been added to home-assistant/home-assistant.io#37212 |
Hi @jlpouffier |
Made the same mistake and entered a prefix, which will not be noticed until backup fails. Can this be corrected anyhow automatically? Best regards |
The synology_dsm documentation has been massively improved about the backup topic, this also contains now examples how to setup the backup function and how to define the backup path |
still having massive issues with the Synology option, and breaking backup completely as a consequence. I reported it in the #beta channel on Discord at https://discord.com/channels/330944238910963714/427516175237382144/1336228026849169483 and following cut it short: It does show the DSM in the backup locations which was configured via the integration , but it does Not show it was configured in the config flow, nor is the option available now (as the DSM is still asleep) Paul mentions it probably still has the formerly configured network share in the backend somewhere not being cleaned up. But the enduser has no means of seeing that anywhere. As I just found out:it seems the integrations creates an actual folder (configured in the path) and it does not use the manually created folder with the exact same name. So we can not point it to an existing folder in the share? |
The network share based backup is not related to the Synology DSM integration. The network drive is managed by the Supervisor and independent on any specific integration, it is based on common network share protocols like cifs or nfs. |
yes, I am aware,. the config flow does not show the configured backup option, when the Synology is asleep. Why I got the error I got is still unclear, as it cant have originated the previously configured network share, as that too was no longer configured... What did happen is clear however: the backup process was completely broken, and no backups were created, in any of the configured locations. |
I just updated to version 2025.2. I have Synology DSM integration installed from earlier but backing up to Synology does not show up in the backup section. I can't see anything suspicious in the logs. What am I missing? |
The problem
Issue 1
The documentation is pretty thin on backups as of today.
It's basically a single line here
After a few tries on DSM side, I managed to make the option pop in the config entry option flow (It's never documented anywhere you need to configure something on the option flow btw)
Issue 2
backup_path
field is mandatory (Why is it not translated by the way? this_is_a_very_technical_way_of_displaying_a_field_name) but I have no idea what to input to create backups at the root of the share.I tried
/
, and.
.Nothing works, the results is always the same:
Logs show almost nothing
What version of Home Assistant Core has the issue?
2025.2.0b1
What was the last working version of Home Assistant Core?
Not applicable. New feature
What type of installation are you running?
Home Assistant OS
Integration causing the issue
synology_dsm
Link to integration documentation on our website
https://www.home-assistant.io/integrations/synology_dsm/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: