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
-
Copy the example env and fill in your details:
cp .env.example .env
-
Edit
.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 up -
Edit
backup.sh— update the archive name/path to match your volume mount -
Build and start:
docker compose up -d --build
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 FingerprintTest 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.logdocker compose exec pbs-client proxmox-backup-client key create --kdf noneThe key is stored in the persistent pbs-config volume and survives container rebuilds.