Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created March 8, 2011 15:20
Show Gist options
  • Save adamhunter/860400 to your computer and use it in GitHub Desktop.
Save adamhunter/860400 to your computer and use it in GitHub Desktop.
backup any riak node or cluster without logging onto the server the node is running on (but having riak installed)
/usr/local/riak/erts-5.7.5/bin/erl -noshell -name riak_kv_backup@127.0.0.1 -setcookie riak -eval "riak_kv_backup:backup('riak@127.0.0.1', \"/path/to/backup-file.riak\", \"all\")" -s init stop
@adamhunter
Copy link
Author

riak-admin backup should do this for me (I extracted this snipped from riak-admin) but I haven't gotten it to work reliably.

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