Skip to content
forked from iplabs/vault-cp

Copy data from a HashiCorp Vault KV storage

License

Notifications You must be signed in to change notification settings

tsf0x13/vault-cp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vault-cp - Copy data from HashiCorp Vault KV stores

The Bash script located in this repository can be used to copy data from one HashiCorp Vault KV store.

It can be used to copy a given path inside a KV store to a new path or to put data into an entirely different store. It can also be used to copy data from one Vault instance to another.

Prerequisites

Examples

Copy recursively from one KV store to another

Copy all data under some_path recursively from secret1 to secret2 using the default Vault instance as specified by the environment variable VAULT_ADDR.

./vault-cp secret1 secret2 some_path

Copy recursively from one Vault instance to another

Copy all data under some_path recursively from secret to secret. The source Vault instance will be specified by the environment variable VAULT_SOURCE_ADDR, whereas the target instance will be specified by the environment variable VAULT_TARGET_ADDR.

VAULT_SOURCE_ADDR="https://my-vault1.example.com/" \
VAULT_TARGET_ADDR="https://my-vault2.example.com/" \
./vault-cp secret secret some_path

About

Copy data from a HashiCorp Vault KV storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%