r/BorgBackup • • 12d ago

help Re Testing Release 1.4.6rc1:

Limited understanding of Borg or github or GNU in general. I have installed Borg1.4.6 in /usr/local/bin. It starts without problem.

Now, how do I make Vorta use this RC rather than borg version 1.4.5? Vorta tells me this version of borg is installed at /app/bin/borg (I assume this means ~/.var/app/com.borgbase.Vorta because there is no path ending in /app/bin/borg on that PC). Please clarify.

1 Upvotes

9 comments sorted by

2

u/Moocha 11d ago

The Vorta flatpak ships its own borg installation, currently 1.4.5. In addition, flatpak by design can't directly map the host's /usr inside the sandbox at /usr. That's why it's not seeing the host's /usr/local/bin.

If a flatpak has the filesystem=host permission, i.e. full access to all system files (and the Vorta flatpak does have it by its nature), then you can find the host's file system exposed inside the sandbox at /run/host -- so inside the sandbox you'd see your own /usr/local/bin/borg at the path /run/host/usr/local/bin/borg. However, I don't know if there's any way to tell Vorta the path to the borg binary it should use, you'd have to consult its documentation. Using a borg binary different from the bundled one may not be possible at all with the flatpak build, you may have to use another way of installing Vorta.

2

u/LateJunction 11d ago

Thanks for this most informative reply. Given my technical skill level and the recent painful memory of changing the basis on which I run Vorta, I think I'm not going to try to use this RC. It begs the question for the future: when borg version 1.4.6 is finally released, how will flatpak-based users of Vorta pickup this newer version of borg?

1

u/Moocha 11d ago

I would assume that the people maintaining the Vorta flatpak will eventually include 1.4.6 in an update, for example like they did here for 1.4.5.

1

u/LateJunction 11d ago

That's my point entirely: access to an updated version of borg will be prevented for users of flatpak Vorta until that flatpak is updated. Yes, I read that there is some connection between those who develop borg and those who develop Vorta, but if I were the lead borg developer I would certainly not want to be dependent on some 'downstream' activity. Fortunately, for all the developers involved, there is zero chance of that scenario.

1

u/ThomasJWaldmann 12d ago

I would have assumed that this should work, that it only needs to be in PATH.

Is /usr/local/bin/borg executable? chmod +x ?

1

u/LateJunction 11d ago edited 11d ago

Yes, /usr/local/bin is in $PATH; borg is there and has permissions of '-rwxrwxr-x'

borg 1.4.5 is invoked when I start Vorta from the 'Whisker' menu (in MX Linux), or from a command line via 'flatpak run com.borgbase.Vorta'. There is something else that I should have done haven't, or should not have done and have. Any ideas?

1

u/ThomasJWaldmann 11d ago

If you enter this in a terminal, what does it output?:

which borg

1

u/LateJunction 11d ago

/usr/local/bin/borg

1

u/Moocha 11d ago

Turns out it's a flatpak installation, which can't use host binaries but only the build with which it ships.