Skip to content

Commit

Permalink
Fixing example
Browse files Browse the repository at this point in the history
  • Loading branch information
DJ Enriquez committed Oct 12, 2016
1 parent 52385ec commit 191e65f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# Consulidator
Simple dockerized way to backup and restore your Consul datastore.
Simple, dockerized way to backup and restore your Consul datastore

## Backup:
```sh
$CONSUL_ADDRESS = 10.0.1.2
$CONSUL_PORT = 8500
$BACKUP_FILE = my_backup
CONSUL_ADDRESS=10.0.1.2
CONSUL_PORT=8500
BACKUP_FILE=my_backup

docker run djenriquez/consulidator \
--backup \
--port $CONSUL_PORT $CONSUL_ADDRESS > $BACKUP_FILE
```

## Restore:
```sh
$CONSUL_ADDRESS = 10.0.1.2
$CONSUL_PORT = 8500
$BACKUP_FILE = my_backup
CONSUL_ADDRESS=10.0.1.2
CONSUL_PORT=8500
BACKUP_FILE=my_backup

docker run djenriquez/consulidator \
-v `pwd`:/restore \
--restore $BACKUP_FILE \
Expand Down

0 comments on commit 191e65f

Please sign in to comment.