From e7e3ba2b58609d43adc17ae9d114a74bf841ba49 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 24 Nov 2016 19:08:09 +0100 Subject: [PATCH] Format examples. --- README.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 07d3bd5..64a9d1d 100644 --- a/README.md +++ b/README.md @@ -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 ```