Closed alexz707 closed 1 year ago
My take, that looks like a key problem. I would set-up a new key and try that. some helpful (to me) links... https://github.com/ikifar2012/remote-backup-addon/issues/82#issuecomment-1346995512
I have done a clean install and have exactly the same problem.
Config : HA on Yellow , Synology NAS
I can do scp from terminal in HA, so key must be valid.
Also tried with the password option, this works as well when done from terminal. When configured in HA in the config file for automated backup it also fails with same error.
Can this be caused by the latest update to the code ? It seems that the command syntax for scp now includes \ in file name .
Guess what...
a0d7b954_plex
[06:26:32] INFO: Backup created: 0e37b5fa
[06:26:32] INFO: Copying backup using SFTP/SCP.
scp: dest open ""/media/pi/RecoveryBuffalo/Backups/HASupervised/ChaloupkaAbode_backup 2023-01-01 06-18.tar"": No such file or directory
scp: failed to upload file /backup/0e37b5fa.tar to "/media/pi/RecoveryBuffalo/Backups/HASupervised/ChaloupkaAbode_backup 2023-01-01 06-18.tar"
[06:26:33] WARNING: SFTP transfer failed, falling back to SCP: Invalid command line argument
[06:27:16] NOTICE: Deleting local backup: c148ef9d
[06:27:18] INFO: Backup process done!
I see it also. I am not synology, just feeding into a drive on a PI. It is my imagination, or is there double quotes in there...
I think this may just be a logging issue, notice how it fell back to SCP, check to see if it actually transferred the backup to the remote destination
@ikifar2012 there is an issue, unfortunately and it is the double quotes. Just reproduced it and it is as in the first post of @alexz707. I have no idea why the double quotes have worked before (I even think they were necessary).
@patman15 interesting this didn't show in my testing, the reason they were there originally I remember there being an issue with spaces in paths
I have no idea why it stopped working but removing the double quotes helps. I tried to go back and forward to reproduce the issue, but now it is only working without the double quotes. No idea what changed. I have a fix, but messed up the config stuff, so can't provide a PR soon.
I think this may just be a logging issue, notice how it fell back to SCP, check to see if it actually transferred the backup to the remote destination
unfortunatley the files do not get transfered.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am going to consider this solved, feel free to re-open if you have any issues
Happy new year everyone!
I've just looked in my Home Assistent logs and saw that the last backup (automatic backup -> mo, wed, fri at 0200) was not successful. The addon should copy from home assistant to my diskstation (synology).
I did neither change/update something on home assistent nor on my diskstation.
I get the following error when I try to make a backup:
When I try to sftp or scp from the terminal in HA I can send files to the diskstation:
scp -i /ssl/diskOneHassio -v 3ffa4a73.tar hassio@diskone.homesys:/NetBackup/Hassio/test.tar
works as well as
My config looks like this:
The debug output would be like this: (seems to be only the end of the output, I don't know how I can retrieve the full log, this is what I got when I download the file from the GUI)):
Do you have an idea what going on? Regards Alex