aleixolucas/hashicorpvault-backup
Backup for hashicorp vault Kv
36
This script back up the key value (Kv) in hashicorp vault to a txt file
Vault version | Docker version | Python version | Operational system | Test result |
---|---|---|---|---|
1.15.6 | 25.0.3 | 3.11.8 | Arch linux | :white_check_mark: |
1.15.6 | 24.0.5 | 3.8.10 | Ubuntu 22.04 | :white_check_mark: |
Name | Example | Description |
---|---|---|
VAULT_ADDR | https://vault.yourinstance.lab | Vault address |
VAULT_TOKEN | hvs.qwertyqwertyqwertyqwerty | Your vault token |
VAULT_BACKUP_FILE | vault-file-backup.txt | Output file name (optional) |
This will create the output file on your actual directory
docker run \
-v $PWD:/opt/vaultbackup \
-e VAULT_ADDR="https://vault.yourinstance.lab" \
-e VAULT_TOKEN="hvs.qwertyqwertyqwerty" \
aleixolucas/hashicorpvault-backup:v1
pip3 install -r requirements.txt
export VAULT_ADDR=https://vault.yourinstance.lab
export VAULT_TOKEN=hvs.qwertyqwertyqwerty
python3 main.py
docker pull aleixolucas/hashicorpvault-backup