Created
March 8, 2011 15:20
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
riak-admin backup should do this for me (I extracted this snipped from riak-admin) but I haven't gotten it to work reliably.