The grappling hook for Proxmox backups.
Project description
Proxmox-grapple
The Python app that "hooks" into Proxmox.
This is a clone of vzdump-hook-script.pl that is written in Python, and that offers a lot more configurability.
Different phases of the vzdump
backup can be hooked into, and scripts can be run.
Configuration
proxmox-grapple
is configured with a YAML-style file. An example:
production:
job-end:
script:
- echo 'hi'
- sleep 1
- echo 'there'
- echo 'This is a test.'
backup-end:
extract:
enabled: false
source_directory: /tmp
destination_directory: /tmp
# exclude_storeids:
The default location for the configuration is /etc/proxmox_grapple.yml
, but this can also be specified on the
commandline.
It can also use different configuration based on environments. It uses the Dynaconf Python project for configuration, so using environment variables to choose the environment and any other configuration option is possible.
Each top-level key should match the different vzdump
phases. The currently recognised phases are:
- job-init
- job-start
- job-end
- job-abort
- backup-start
- backup-end
- backup-abort
- log-end
- pre-stop
- pre-restart
- post-restart
[!NOTE] The extract argument is currently not tested, and should be treated as a proof-of-concept only.
Supported versions
proxmox-grapple
supports the following VE versions:
VE version | Debian version | Python version | VE EoL |
---|---|---|---|
8 | 12 (Bookworm) | 3.11 | TBA |
7 | 11 (Bullseye) | 3.9 | 2024-07 |
Installation
The recommended way to install proxmox-grapple
is to use pipx.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file proxmox-grapple-1.5.3.tar.gz
.
File metadata
- Download URL: proxmox-grapple-1.5.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d4dc226010b19eae105e3882a73627f819ea6917be6ebc68c3b9671e26acf6 |
|
MD5 | 50929e08afd368f5ed0e0b3de5503b51 |
|
BLAKE2b-256 | dc64606dabd40c129937771f7d4536dc3d0f1ec7f909908603c2e6f40035ab64 |
File details
Details for the file proxmox_grapple-1.5.3-py3-none-any.whl
.
File metadata
- Download URL: proxmox_grapple-1.5.3-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2461b0f391825fc1e314827642469e3a48baa6fe0da13b035d24177f6adf8e3 |
|
MD5 | 96121de9272e573471fcabad09d12174 |
|
BLAKE2b-256 | 4f4bf18238fc3cc66017b39c605f081b2e1f209e36cd9146d0d71356af4e5685 |