proxmox-backup-server as statically linked binary without apt

GrafZahl

New Member
Jan 3, 2025
6
0
1
I am using PBS as backup-solution for my PVE. My clients are backed up using restic at the moment, but I would like to switch to proxmox-backup-client for my clients.
But I am not using debian-based distros. As I read in the official proxmox-repo there would be a statically linked binary.
Restic, which is written in go, has this one binary-file you can put everywhere, which is a big benefit to me, which I'd like to have with proxmox too.

Is there a way to download this binary somewhere, without apt?

Thanks a lot!
 
As I read in the official proxmox-repo there would be a statically linked binary.

Yes, there is; but we currently do not have a built-in update stack so we do not put it out there as separate binary.

But you can manually download the .deb file from our APT pbs-client repository http://download.proxmox.com/debian/pbs-client/dists/trixie/main/binary-amd64/ for example:

Bash:
curl -O http://download.proxmox.com/debian/pbs-client/dists/trixie/main/binary-amd64/proxmox-backup-client-static_4.0.14-1_amd64.deb

Then verify it's checksums as per the Packages file from that link, e.g:

Bash:
curl -O http://download.proxmox.com/debian/pbs-client/dists/trixie/main/binary-amd64/Packages
# Get all entries for the static package:
sed -n '/^Package: proxmox-backup-client-static$/,/^$/p' Packages

Search for the one with the matching version to get expected SHA256 sum and compare it, e.g.:

Bash:
sha256sum proxmox-backup-client-static_4.0.14-1

Finally, you can manually extract the executables using dpkg -x if you have some a Debian (derivative) based system around, e.g.:

Bash:
mdkir proxmox-backup-client-static_4.0.14-1
dpkg -x proxmox-backup-client-static_4.0.14-1_amd64.deb proxmox-backup-client-static_4.0.14-1/

Or alternatively use ar and tar to manually extract the underlying archives if you got no Debian based system around, like:

Bash:
mdkir proxmox-backup-client-static_4.0.14-1
ar p proxmox-backup-client-static_4.0.14-1_amd64.deb data.tar.xz | tar xJf - -C  proxmox-backup-client-static_4.0.14-1

Then you can get the actual proxmox-backup-client and pxar executables from usr/bin inside that folder and copy them wherever you need them.

Bash:
cd proxmox-backup-client-static_4.0.14-1
ls -1 usr/bin/p* 
 usr/bin/proxmox-backup-client
 usr/bin/pxar
 
Last edited:
  • Like
Reactions: GrafZahl and UdoB
Thanks a lot. I could extract the binary and run it!
I would be really happy if you would someday distribute the binary for easy usage! ;)