Automation Snapshot to NAS for dummies

Thanks for trying out. Currently you have to create an automation like in hassio-remote-backup. You can find an example in the README.

Thanks a lot for your plugin, Thomas. I’m currently trying to set it up to backup to my Synology NAS. Unfortunately, the transfer always fails with the following error in the log:

Host: 192.168.178.31
Share: DISKSTATION916
Target Dir: public
Username: sebastian
Keep local: 5
Keep remote: 30
Creating snapshot "Automatic Backup 2020-05-23 16:07" ...
Creating snapshot "Automatic Backup 2020-05-23 16:07" ... done
Copying snapshot aa3764b7.tar ...
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Any idea what’s going on there?

Thanks for you work on this: However I’m getting an error.

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Host: 192.168.0.53
Share: freenas
Target Dir: \homeassistant\backups
Username: hassio
Keep local: all
Keep remote: all
Creating snapshot “Automatic Backup 2020-05-25 13:30” …
Creating snapshot “Automatic Backup 2020-05-25 13:30” … done
Copying snapshot 5e88a878.tar …
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

My Config:

host: 192.168.0.53
share: freenas
target_dir: \homeassistant\backups
username: hassio
password: password
keep_local: all
keep_remote: all
backup_password: ‘’

Any ideas?

Hi. Your config looks wrong. As this is linux-based you have to specify the target directory using forward slashes and without a preceding one: “homeassistant/backups”

Looks like your Synology and the smbclient are not able to agree on a common SMB version. Which versions does your NAS support?

It seems that the Diskstations don‘t accept SMB version 1 connections anymore due to security concerns. It is supposed to work when adding -m SMB2 or -m SMB3 to the smbclient call. Is that possible?

Edit: It seems it was a problem on my Synology side configuration - it was set to SMB1 as minimum and maximum version. Looks better now!

Cool! To my knowledge the -m option should not be necessary anymore, as SMB3 is used by default since version 4.7. The current version of the smbclient is 4.11.8

Thanks. That has sorted it.