Restoring using proxmox-backup-client within a docker image

reto

Member
Feb 12, 2022
23
6
8
102
Currently there is no proxmox-backup-client release for OSX, so I thought I just use a docker image. Unfortunately I'm unable to restore files from within the docker environment.

The error is:
Code:
proxmox-backup-client  restore host/REDACTED/2022-02-12T01:00:11Z REDACTED.pxar.didx restore
Error: Operation not supported (os error 95)

My version:
proxmox-backup-client version client version: 2.1.4 server version: 2.1.4

Docker image: https://hub.docker.com/repository/docker/retoschuettel/proxmox-backup-client
 
I'm having the same issue. Still looking for a solution (I'm not using the Docker container above, I'm just using a Centos 7 Docker Container.)
 
I'm actually trying to deploy a docker container with proxmox-backup-client installed. It backups no problem, just can't restore with the same error that you have.
running it in a LXC ran with no problems (backup and restore) and direct install on Debian VM worked great!. Centos7/8 was a bit of a pain and didn't work well in the end for me. I will most likely just continue building the LXC to backup other OS's
 
My setup is:

  • Mac OSX ist the Host (docker Engine)
  • And within the Docker image Debian is Running
    • -> restore fails with the error above
I'm wondering, if a Debian/Debian (Docker) combination would work for restores. If I understand you correctly, you tried LXC and direct install, which both worked for you.
 
It has to be a dependency issue in the Docker container. I've tried Bullseye and Stretch in a Docker container without any luck. Try deploying a Debian LXC it will work right away. if you also use PVE it should be a very easy deployment. Good Luck!
 
Noticed in another thread https://forum.proxmox.com/threads/e...t-operation-not-supported-os-error-95.109600/ that the /tmp directory needs to be writeable.

My working docker compose looks something like this:

Code:
version: "3.7"

services:
  pbc-appdata:
    image: retoschuettel/proxmox-backup-client:latest
    container_name: pbc-appdata
    hostname: appdata
    restart: unless-stopped
    command: /config/pbc.sh
    tmpfs:
      - /tmp
    environment:
      - PBS_PASSWORD=<password>
      - PBS_REPOSITORY=root@pam!token@pbs:datastore
      - PBS_FINGERPRINT=<fingerprint>
    volumes:
      - /appdata:/appdata:ro
      - /appdata/pbc-appdata:/config

My bash script simply runs proxmox-backup-client with appropriate arguments.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!