docker-pbs-client
v1.2.0
Published
Set up a minimal Debian Docker container as a Proxmox Backup Client
Downloads
505
Maintainers
Readme
Docker PBS Client
Minimal Debian Docker container running proxmox-backup-client for backing up to a Proxmox Backup Server (4.x).
Features:
- Debian Bookworm slim (~120 MB image)
- Incremental backups with deduplication
- Cron scheduling inside the container
- Automatic pruning of old snapshots
- macOS artifact exclusions
Setup
Copy the example env and fill in your details:
cp .env.example .envEdit
.envwith your PBS connection details:PBS_SERVER— IP:port (e.g.192.168.1.100:8007)PBS_USER— PBS user (e.g.root@pam)PBS_PASSWORD— passwordPBS_DATASTORE— target datastore namePBS_FINGERPRINT— server TLS fingerprint (see below)BACKUP_CRON— cron schedule (default:0 2 * * *= 2 AM daily)TZ— timezone
Edit
docker-compose.yml— update the volume mount undervolumes:to point at the directories you want backed upEdit
backup.sh— update the archive name/path to match your volume mountBuild and start:
docker compose up -d --build
Finding the PBS fingerprint
On the PBS web UI (https://<PBS_IP>:8007), the fingerprint is shown on the Dashboard.
Or via the PBS server shell:
proxmox-backup-manager cert info | grep FingerprintUsage
Test connectivity:
docker compose exec pbs-client proxmox-backup-client snapshot listRun a manual backup:
docker compose exec pbs-client /usr/local/bin/backup.shView backup logs:
docker compose exec pbs-client tail -30 /var/log/pbs-backup/backup.logOptional: Encryption key
docker compose exec pbs-client proxmox-backup-client key create --kdf noneThe key is stored in the persistent pbs-config volume and survives container rebuilds.
