Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.03 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.03 KB

Consul Backup and Restore tool.

This will use consul-api (Go library) to recursively backup and restore all your key/value pairs.

You need to set up your Go environment and "go get github.com/hashicorp/consul/api" and "go get github.com/docopt/docopt-go"

a "go build" will generate executable named "consul-backup"

Usage: consul-backup [-i IP:PORT] [-t TOKEN] [--aclbackup] [--aclbackupfile ACLBACKUPFILE] [--restore] consul-backup -h | --help consul-backup --version

Options: -h --help Show this screen. --version Show version. -i, --address=IP:PORT The HTTP endpoint of Consul [default: 127.0.0.1:8500]. -t, --token=TOKEN An ACL Token with proper permissions in Consul [default: ]. -a, --aclbackup Backup ACLs, does nothing in restore mode. ACL restore not available at this time. -b, --aclbackupfile=ACLBACKUPFILE ACL Backup Filename [default: acl.bkp]. -r, --restore Activate restore mode