Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Glympse/migrated_consulidator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consulidator

Simple, dockerized way to backup and restore your Consul datastore.

Usage

Usage: main [OPTIONS] ADDRESS

Options:
  --backup        Performs a backup - Default mode
  --restore TEXT  Performs a restore
  --port INTEGER  Consul Port
  --secure        Enables TLS connection
  --token TEXT    ACL token
  --help          Show this message and exit.

Backup:

To backup to my_backup in the current directory:

CONSUL_ADDRESS=10.0.1.2
BACKUP_FILE=my_backup

docker run --rm \
glympse/consulidator:v0.1.0 \
$CONSUL_ADDRESS > $BACKUP_FILE

Restore:

To restore from my_backup in the current directory:

CONSUL_ADDRESS=10.0.1.2
BACKUP_FILE=my_backup

docker run --rm \
-v `pwd`:/restore \
glympse/consulidator:v0.1.0 \
--restore $BACKUP_FILE \
$CONSUL_ADDRESS

About

Simple, dockerized way to backup and restore your Consul datastore

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%