Skip to content

Instantly share code, notes, and snippets.

@iantruslove
Created July 22, 2014 22:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iantruslove/3693c538ce50dfb9c49c to your computer and use it in GitHub Desktop.
Save iantruslove/3693c538ce50dfb9c49c to your computer and use it in GitHub Desktop.

Dumping Datomic data into a local (free) transactor

Create a database dump from the server running the transactor

bin/datomic backup-db "datomic:ddb://us-east-1/rest/of/url?aws_access_key_id=<ACCESS_KEY_ID>&aws_secret_key=<SECRET_KEY>" file:/home/ian/datomic-backup-`date +"%Y%d%m"`

Transfer the dump to your local machine

Download the free Datomic transactor

Extract the tarball

Run the local transactor

The sample config seems totally appropriate for a quick test as-is.

cd datomic
bin/transactor config/samples/free-transactor-template.properties

Load in the database dump into the local transactor

bin/datomic restore-db file:/home/vagrant/ddatomic-backup-20140101 datomic:free://localhost:4334/local-db

Profit!

Well, not before paying Cognitect.

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