You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Before I begin all credits go to beeboo (imabee#1337) from discord for the solution and the script.
The standalone binary releases for borg backup do not work. They complain about problems with libsomething.so files when you try to run them. We should make an installer to use the borg.tgz files that have these dependencies bundles in them. Ideally the installer should also let you select which version of borg to install as you need a specific version based on what the Borg server has.
Describe the solution you'd like
The script should be able to check glibc version and download the right files and extract them and add them to bashrc as aliases.
Additional context
Beeboo from discord shared his script, here it is.
function github_latest_version() {
# Argument expects the author/repo format
# e.g. swizzin/swizzin
repo=$1
curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/${repo}/releases/latest | grep -o '[^/]*$'
}
function _download() {
glib_version=$(dpkg-query -W -f='${Version}' libc6:amd64 | sed 's/^\([0-9]*\)\.\([0-9]*\)-.*/\1\2/')
echo "Detected glib version: ${glib_version}"
version=$(github_latest_version "borgbackup/borg")
echo "Downloading latest borg version: ${version}"
libraries_dl="https://github.com/borgbackup/borg/releases/download/${version}/borg-linux-glibc${glib_version}.tgz"
tar xvf borg-linux-glibc${glib_version}.tgz
cat << EOF >> $HOME/.bashrc
alias borg="\$HOME/borg-dir/borg.exe"
alias borgfs="\$HOME/borg-dir/borg.exe mount"
EOF
echo 'Please run `source .bashrc` to add the `borg` and `borgfs` commands.'
}
_download
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Before I begin all credits go to beeboo (imabee#1337) from discord for the solution and the script.
The standalone binary releases for borg backup do not work. They complain about problems with libsomething.so files when you try to run them. We should make an installer to use the borg.tgz files that have these dependencies bundles in them. Ideally the installer should also let you select which version of borg to install as you need a specific version based on what the Borg server has.
Describe the solution you'd like
The script should be able to check glibc version and download the right files and extract them and add them to bashrc as aliases.
Additional context
Beeboo from discord shared his script, here it is.
The text was updated successfully, but these errors were encountered: