Skip to content

Instantly share code, notes, and snippets.

@fannarsh
Last active November 29, 2016 15:46
Show Gist options
  • Save fannarsh/19e8281ba14e5f00595b30fe7944d5ca to your computer and use it in GitHub Desktop.
Save fannarsh/19e8281ba14e5f00595b30fe7944d5ca to your computer and use it in GitHub Desktop.
Clone a rethinkdb database
docker-joyent run -ti --rm gliderlabs/alpine:3.4 /bin/ash
apk add nodejs --no-cache
npm install -g thinker
thinker clone --sh '192.168.129.243:28015' --th '192.168.129.243:28015' --sd connection_store_production --td connection_store_staging
@fannarsh
Copy link
Author

don't forget steps like
make a database dump
move it over somehow, previously using scp which means mocking around with ssh keys
it would be nice to use manta for such things
create the machine instance
set correct cloud firewall rules
pg_client: true

@fannarsh
Copy link
Author

the new postgres machine needs to be on the correct network, the same network as the docker machines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment