Closed supermamie closed 3 years ago
[edit: The problem is different so I created a new issue : https://github.com/YunoHost-Apps/borg_ynh/issues/50 ]
Hello, I had a similar problem and I dug.
The problem is, I think, in this script :
# cat /etc/yunohost/hooks.d/backup_method/05-borg_app
(...)
BORG_PASSPHRASE="RGjauGbbg6d$jj77g*piabfbfGedE"
(...)
(I changed the passphrase, obviously..)
Yunohost saved the complete passphrase :
# yunohost app setting borg passphrase
RGjauGbbg6d$jj77g*piabfbfGedE
But "$jj77g" is considered like an empty variable. Finally, borg used "RGjauGbbg6d*piabfbfGedE". We have to change " -> ' in the script.
$ PASSPHRASE="gaghtbgg$TEXT*gloa"
$ echo $PASSPHRASE
gaghtbgg*gloa
$ PASSPHRASE='gaghtbgg$TEXT*gloa'
$ echo $PASSPHRASE
gaghtbgg$TEXT*gloa
Perhaps we should add a warning during installation to say it's better to avoid some special characters ( ' , " , $ , .. ) ?
Fixed in #71
On initialisation, I set my passphrase to
My last working save is on july 13 Since that, I have errors about passphrase I tried
And it only return
I tried to restore it
But the save still fails. I tried a command suggested on the forum to get the actually used password
And it still returns
So I edited the file, and the code only contains
BORG_PASSPHRASE="Save"
I replaced it with the real password and now it works.I don't know how, but my password was truncated.
There were a commit on July 14 containing
Maybe this needs some escaping to save the spaces ?