Passphrase problem with Borg Backup App for YunoHost

Hello,

When I do this command
BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes " borg list servera@host.serverb:~/backup

as expected, it asks me the passphrase but when I write it, it doesn’t work. I first thought it I made a mistake so I went to check in this file
sudo nano /etc/yunohost/hooks.d/backup_method/05-borg_app
and BORG_PASSPHRASE=“xxxxx”
xxxxx is exactly what I wrote when the passphrase was requested.

Where am I wrong?

Do you have a space or dollar sign in your password ?
If so, it could look like one of those issues :
Password forget what is after a space #49
Part of the passphrase is interpreted as an empty variable #50

2 Likes

I had a $. I changed it. I’m trying and I’ll let you know.

Well, now borg backup is not working. I guess just changing the passphrase was not enought. I guess I should do something on borg server like removing old backup but I’m not sure how to do it properly.

I think (I’m not sure at all) tha if you do not care about old backups, you can just empty the backup folder so a new one will be created.
But please, do a copy first :scream:

1 Like

It worked. Thanks!