neomediatech/pbs

By neomediatech

Updated 12 days ago

Proxmox Backup Server on a Docker container

Image
Databases & Storage
0

95

Warning
**Maybe something is not working, use this image with caution, bad things can happens. YHBW**

Proxmox Backup Server on a Docker container

Proxmox Backup Server on a Docker container

Known limits

  • Postfix is not working
  • (and maybe many other things)

How to run

./run.sh ;-)
What does run.sh do:

  • set docker ENV vars if they are set in the script or in the .envs file
  • set shell script vars if they are set in the script or in the .shell-vars file (see example)
  • check if datastore exists; if not, it exits prior to run the container (maybe in future i'll make it more smart, see To DO section)
  • run the container

or
docker run -d --name pbs neomediatech/pbs

Environment Variables

NameDescriptionDefault
ADMIN_PASSWORDPassword to access PBS web interface (mandatory)(none)
RELAY_HOSTHostname to use to relay email from Postfix
PBS_ENTERPRISEIf set to "yes", enterprise repository will be retainedno

Set vars in run.sh script and/or set them in .envs file.
Example .envs file:

ADMIN_PASSWORD=myrealsecretpassword
RELAY_HOST=10.40.50.4

run.sh script shell vars

NameDescriptionDefault
INTERACTIVERun the container in "interactive mode" (run it in foreground)
CTRL+C will end the container
no
MOUNT_PBS_MOUNTmount the mountpoint set in PBS_MOUNT var? Must be in the fstab hostyes
CREATE_DATASTORECreate the datastore if it doesn't exists? (The name will be "pbs")no
NAMEProxmox Backup Server namepbs
PBS_DATASTORE_NAMEThe datastore namepbs
BASE_PATHPath where to store PBS configurations, users, etc.../srv/pbs
PBS_MOUNTPath to store backups/media/pbs-backup

.shell-vars example file:

NAME="myserver-pbs"
PBS_DATASTORE_NAME="backups"
BASE_PATH="/srv/pbs"
INTERACTIVE="no"
MOUNT_PBS_MOUNT="no"
CREATE_DATASTORE="yes"
PBS_MOUNT="/mnt/pbs-backup"

Mountpoints/volumes

Put your docker bindmount in the script run.sh or in the .volumes file
.volumes example file:

${BASE_PATH}/data:/data
${BASE_PATH}/config:/etc/proxmox-backup
${BASE_PATH}/data/logs:/var/log/proxmox-backup
${BASE_PATH}/data/lib:/var/lib/proxmox-backup
${BASE_PATH}/data/bin:/srv/bin

To DO

  • Option to create the datastore if it doesn't exists
  • Make Postfix working, to send emails

Docker Pull Command

docker pull neomediatech/pbs