Riak backup and restore using defaults

To back up:
riak-admin backup riak@127.0.0.1 riak /tmp/rbak.dat

To restore:
riak-admin restore riak@127.0.0.1 riak /tmp/rbak.dat

If yo run into the following error, make sure riak user has the right permissions. Or just use a tmp directory.

{“init terminating in do_boot”,{{badmatch,{error,{file_error,”/root/rb/rbak.dat”,eacces}}}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: