Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation innacurate #152

Open
supermamie opened this issue May 23, 2024 · 5 comments
Open

Documentation innacurate #152

supermamie opened this issue May 23, 2024 · 5 comments

Comments

@supermamie
Copy link

Describe the bug

command not found: borg

Context

  • Hardware: *Old laptop or computer *
  • YunoHost version: 11.2.12
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 1.2.8~ynh1

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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)"

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
Copy link
Author

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
Copy link
Contributor

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants