Skip to content

Commit

Permalink
Format examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nixtrace committed Nov 24, 2016
1 parent 21c6eac commit e7e3ba2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ Rump is able to transfer keys from an ElastiCache cluster or any Redis server to

## Examples.

- Sync local Redis DB 1 to DB 2.

`rump -from redis://127.0.0.1:6379/1 -to redis://127.0.0.1:6379/2`

- Sync ElastiCache cluster to local.

`rump -from redis://production.cache.amazonaws.com:6379/1 -to redis://127.0.0.1:6379/1`
```sh
# Sync local Redis DB 1 to DB 2.
$ rump -from redis://127.0.0.1:6379/1 -to redis://127.0.0.1:6379/2

- Sync protected ElastiCache via EC2 port forwarding.
# Sync ElastiCache cluster to local.
$ rump -from redis://production.cache.amazonaws.com:6379/1 -to redis://127.0.0.1:6379/1

```sh
ssh -L 6969:production.cache.amazonaws.com:6379 -N ubuntu@xxx.xxx.xxx.xxx &
rump -from redis://127.0.0.1:6969/1 -to redis://127.0.0.1:6379/1
# Sync protected ElastiCache via EC2 port forwarding.
$ ssh -L 6969:production.cache.amazonaws.com:6379 -N ubuntu@xxx.xxx.xxx.xxx &
$ rump -from redis://127.0.0.1:6969/1 -to redis://127.0.0.1:6379/1
```

0 comments on commit e7e3ba2

Please sign in to comment.