https://github.com/kwatson/pbclient
Proxmox Backup Client in Docker
https://github.com/kwatson/pbclient
Last synced: 3 months ago
JSON representation
Proxmox Backup Client in Docker
- Host: GitHub
- URL: https://github.com/kwatson/pbclient
- Owner: kwatson
- Created: 2022-04-03T23:34:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-29T06:51:05.000Z (over 3 years ago)
- Last Synced: 2025-11-23T18:05:22.244Z (7 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Proxmox Backup Client in a Container
This was built to run on an unraid server, so here are some specific setup steps for that.
### Setup
SSH into unraid and perform the following:
```bash
mkdir -p /mnt/user/appdata/pbclient && chown nobody:nousers /mnt/user/appdata/pbclient
```
### Create the encryption key
```bash
docker run --rm -i -v /mnt/user/appdata/pbclient:/config kwatson/pbclient:latest proxmox-backup-client key create /config/client.key --kdf none
```
### Perform a backup
You can use the userscripts application to setup a recurring schedule for this.
* `docs.pxar:/data` is a friendly name for the unraid share, and `/data` is where it's mounted in the container
* `unraid@pbs\!unraid-agent` is the API username
* `PBS_PASSWORD` is your api token
* `--backup-id unraid-docs` is a friendly name that's displayed under Content in the proxmox backup UI. Without this, it would default to the hostname of the container, which is different after each run.
* `MYPBS` is the ip or url to your proxmox backup server
* `DATASTORE` is the name of your datastore
```bash
docker run --rm \
-v /mnt/user/appdata/pbclient:/config \
-v /mnt/user/Docs:/data \
-e PBS_PASSWORD=CHANGEME \
-e PBS_REPOSITORY=unraid@pbs\!unraid-agent@MYPBS:DATASTORE \
kwatson/pbclient:latest proxmox-backup-client backup docs.pxar:/data --keyfile /config/client.key --backup-id unraid-docs
```