Last active
November 8, 2024 14:16
-
-
Save maedoc/30b40594f00ddf3f87389f0ffb5a39a5 to your computer and use it in GitHub Desktop.
Using Proxmox backup client via Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ts=$(date +%y-%m-%d_%Hh%M) | |
sudo docker run --rm -it \ | |
-e PBS_FINGERPRINT="foobar" \ | |
-e PBS_REPOSITORY="ding@[email protected]:datastore" \ | |
-e PBS_PASSWORD="baz" \ | |
-v /mnt/data:/data \ | |
pbs \ | |
proxmox-backup-client backup "data-$ts.pxar:/data" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:bullseye | |
RUN apt-get update \ | |
&& apt-get install -y wget \ | |
&& wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg \ | |
&& echo "deb http://download.proxmox.com/debian/pbs-client bullseye main" >> /etc/apt/sources.list.d/pbs-client.list \ | |
&& apt-get update \ | |
&& apt-get install -y proxmox-backup-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment