This is an unofficial compilation of Proxmox Backup Server to run it in a container for AMD64 and ARM64.
Running in a container might result in some functions not working properly. Feel free to create an issue to debug those.
For starting quickly all images are precompiled and hosted at https://hub.docker.com/r/ayufan/proxmox-backup-server.
Or:
docker pull ayufan/proxmox-backup-server:latest
docker-compose up -d
Then login to https://<ip>:8007/
with admin / pbspbs
.
After that change a password.
There are some features missing, ex.:
- ZFS (it is not installed in a container)
- v2.1.2 - 30 Nov, 2021 - this version requires
tmpfs
to be used for/run
. Inspectdocker-compose.yml
- v2.0.7 - Jul 31, 2021
- v2.0.4 - Jul 14, 2021
- v1.1.9 - Jun 14, 2021
Since it runs in a container, it is by default self-signed. Follow the tutorial: https://pbs.proxmox.com/docs/pve-integration.html.
You might need to read a PBS fingerprint:
docker-compose exec server proxmox-backup-manager cert info | grep Fingerprint
Create a new file: docker-compose.override.yml
:
version: '2.1'
services:
pbs:
volumes:
- backups:/backups
volumes:
backups:
driver: local
driver_opts:
type: ''
o: bind
device: /srv/dev-disk-by-label-backups
Then, add a new datastore in a PBS: https://<IP>:8007/
.
If you are running in Docker it might be advised to configure timezone.
Create a new file: docker-compose.override.yml
:
version: '2.1'
services:
pbs:
environment:
TZ: Europe/Warsaw
Create a new file: docker-compose.override.yml
:
version: '2.1'
volumes:
pbs_etc:
driver: local
driver_opts:
type: ''
o: bind
device: /srv/pbs/etc
pbs_logs:
driver: local
driver_opts:
type: ''
o: bind
device: /srv/pbs/logs
pbs_lib:
driver: local
driver_opts:
type: ''
o: bind
device: /srv/pbs/lib
Docker is convienient, but in some cases it might be simply better to install natively.
Since the packages are built against Debian Buster
your system needs to run soon
to be stable distribution.
You can copy compiled *.deb
(it will automatically pick amd64
or arm64v8
based on your distribution)
from the container and install:
cd /tmp
docker run --rm ayufan/proxmox-backup-server:latest tar c /src/ | tar x
apt install $PWD/src/*.deb
You can compile latest version or master with a set of commands and push them to the registry.
# build v1.0.5
make all-build VERSION=v1.0.5
# build master
make all-build
# build and push to registry v1.0.5
make all-push VERSION=v1.0.5 REGISTRY=my.registry.com/pbs
# build and push to registry v1.0.5
make all-push REGISTRY=my.registry.com/pbs
# make the given version latest
make all-latest VERSION=v1.0.5
make dev-build
It builds on any platform, which can be: amd64
, arm32v7
, arm64v8
,
etc. Wait a around 1-3h to compile.
Then you can push to your registry:
make dev-push
Or run locally:
make dev-shell
make dev-run
You might as well pull the *.deb
from within the image
and install on Debian Bullseye.
This is just built by Kamil Trzciński, 2020-2021 from the sources found on http://git.proxmox.com/.