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.