YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 22 forks source link

Documentation innacurate #152

Open supermamie opened 1 month ago

supermamie commented 1 month ago

Describe the bug

command not found: borg

Context

Steps to reproduce

I upgraded borg, then I wanted to check the repository to validate everything, but borg is not found.

I think the backups worked, I’ll check online tomorrow if there was some new data on borgbase.com, my problem is : how to run borg to check/mount archives ?

supermamie commented 1 month ago

After some search in the logs (to be sure I have a backup), I found the new path for borg. Here is the command I used : app=borg__2; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes " /var/www/${app}/venv/bin/borg list "$(yunohost app setting $app repository)" Could this be somewhere in the documentation ?

olberger commented 1 month ago

Wouldn't it be better to depend on plain borg-backup from Debian, so that any admin can perform a borg list, instead of a venv version ?

olberger commented 1 month ago

app=borg__2; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORGRSH="ssh -i /root/.ssh/id${app}_ed25519 -oStrictHostKeyChecking=yes " /var/www/${app}/venv/bin/borg list "$(yunohost app setting $app repository)"

Uh, app=borg__2 ?

This worked for me with:

app=borg; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes " /var/www/${app}/venv/bin/borg list "$(yunohost app setting $app repository)"
supermamie commented 1 month ago

Wouldn't it be better to depend on plain borg-backup from Debian, so that any admin can perform a borg list, instead of a venv version ?

It’s to be able to install any version, Debian is awesome but always late on everything 🙃

Uh, app=borg__2 ?

Yeah, I have 4 instances of borg installed, borg, borg__2, borg__3 and borg__4

olberger commented 1 month ago

Wouldn't it be better to depend on plain borg-backup from Debian, so that any admin can perform a borg list, instead of a venv version ?

Well... on the other hand, it provides /usr/bin/borg where its would be natural to find it. And if upstream versions tend to take time in being package, Debian wouldn't mind getting more help. Disclaimer: I've been a Debian maintainer in the past, including trying to maintain Web apps ;)