Skip to content

Container with Proxmox Backup CLI tool. It helps to run the CLI in CentOS, Fedora, Suse, Ubuntu, etc

Notifications You must be signed in to change notification settings

alebeta90/proxmox-backup-cli-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Proxmox Backup Client container

This container helps sysAdmin/DevOps to run the backup cli from Proxmox in any system with Docker/Podman.
At the moment with Proxmox Backup Server being a beta development, the cli tool is only available for Debian Linux Distribution.
With this container you can perform backups to you Proxmox Backup Server using podman or docker.

Proxmox Backup Server Documentation: https://pbs.proxmox.com/wiki/index.php/Main_Page.

How to use it?

We recommend to use Podman to run the container, it just create a light process and does not need a runtime to run the container.

Install Podman

CentOS 7:

sudo yum install podman

CentOS 8 & Fedora:

sudo dnf install podman

Gather the input data

You will need to the following:

  • Backup account password - that one will be typically shared to you in a private and secure way.
  • Backup server hostname or IP.
  • Backup account username, backup server fingerprint - you also need to be told these, but it doesn't have to be public.
  • Directory to backup, identification of the system on the backup server (hostname)

Set the environment variables:

  • PBS_PASSWORD
  • PBS_FINGERPRINT

this env are necessary because the container tool is not able to interact a ask for password and fingerprint.

In the following example, hostname is set to my_hostname, directory is /home/john, server is pbs-server and username is myuser. Among other things, mydata, pbs in myuser@pbs@pbs-server and backup01 are constants to keep as-is, unless you are told otherwise.

podman run -i --rm -h my_hostname -v /home/john:/mydata -e PBS_PASSWORD -e PBS_FINGERPRINT --security-opt label=disable quay.io/alebeta/proxmox-backup-cli:latest backup backup.pxar:/mydata/ --repository myuser@pbs@pbs-server:backup01

Explaining the podman run

-h: set the container hostname, it is useful to identify backups in your BPS. If hostname is not set, it will show the container ID which is not so useful.
-v: map your local folder /home/john to the container volume /mydata. Then it is important to change /home/john for the directory you would like to backup.
-e: specify the env variables needed to authenticate at the PBS server.
--security-opt: For testing we use label=disable option, which relax the security context of Podman. But for production usage, it is important to run the container without this option and configure the permissions and security context properly.

NOTE: This container image can run with docker, but it haven't been tested yet.

Contributors

@mihai-satmarean @alebeta90 @matejak

About

Container with Proxmox Backup CLI tool. It helps to run the CLI in CentOS, Fedora, Suse, Ubuntu, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published