Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy RedisToGo database in Heroku to local machine?

I have a node.js app, using RedisToGo and running in Heroku. I would like to copy the Redis To Go database to localhost for testing.

When developing Ruby on Rails app, I can use heroku db:pull command. Is there any similiar command which I can use for node.js and Redis?

Thanks.

like image 718
Victor Lam Avatar asked Dec 27 '22 22:12

Victor Lam


2 Answers

There was a guide available from the redistogo support knowledge base but it got deleted, I used the way back machine to grab it's content and made a gist: https://gist.github.com/mmcdaris/29cfe920c846ae6dd5c6eb354c9abdd2 Same result different method.

like image 180
mogramer Avatar answered Jan 05 '23 17:01

mogramer


You can slave your local instance of Redis to the RedisToGo instance - http://redistogo.com/documentation/exporting

like image 41
John Beynon Avatar answered Jan 05 '23 19:01

John Beynon