Skip to content

ErdemERDOLU/kubernetesconsulbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

It is a script that can run on linux for a hasicorp's consul product in the kubernetes environment.

In the first step of the script, you need to write the namespace information where the consul will run.You can set them in the variables below.

BACKUP_SNAP_FILE="consul-snap-$( date +"%d-%m-%y").snap"</br>
BACKUP_KV_FILE="consul-kv-$( date +"%d-%m-%y").json"</br>
BACKUP_KEY_VALUE_FILE="consul-key-value-$( date +"%d-%m-%y").json"</br>
BACKUP_KEY_VALUE_JQ_FILE="consul-key-value-jq-$( date +"%d-%m-%y").json"</br>
BACKUP_TOKEN_FILE="consul-token-$( date +"%d-%m-%y").json"</br>
BACKUP_PATH="consul-backup-$(date +"%d-%m-%y")"</br>
BACKUP_POLC_FILE="consul-POLC-$( date +"%d-%m-%y")"</br>

After git clone operation, it will be enough to run the following command.

git@github.com:ErdemERDOLU/kubernetesconsulbackup.git

chmod +x kubernetesconsulbackup/consulbackupPerfx.sh

./kubernetesconsulbackup/consulbackupPerfx.sh

image

Releases

No releases published

Packages

No packages published

Languages