[erlang-questions] The way to backup mnesia data daily

Yang Zhenguo <>
Mon Aug 1 15:47:13 CEST 2016


Thanks James.

Anothernode is the previous node name. Sorry for the "bad" name.

Looks like I can restore it successfully without changing node name
process. What I missed is that creating the tables in the new node.

2016-07-30 3:15 GMT+08:00 James Kingsbery <>:

> I've followed those instructions before with success. I think you need to
> give more to go on - is '' the new node name? When
> you look at the node's name (eg, as shown in mnesia:info/0) what do you see?
>
> I would add that you should look at what your box is doing when you run
> backups. Depending on what sort of data you have stored, it could use a lot
> of resources and make the box sluggish or even cause a kernel panic.
>
> On Mon, Jul 25, 2016 at 7:38 AM, Yang Zhenguo <>
> wrote:
>
>> Hi Team,
>>
>> Any suggestion on it?
>>
>> Thanks,
>> Zhenguo
>>
>> 2016-07-24 22:14 GMT+08:00 Yang Zhenguo <>:
>>
>>> Hi Folks,
>>>
>>> Having a question about mnesia backup.
>>>
>>> We have an application running based on Erlang Cowboy and Mnesia. I am
>>> wondering to know what is a good way to backup mnesia data daily, since we
>>> only have one node.
>>>
>>> I followed the steps here
>>>
>>> http://stackoverflow.com/questions/463400/how-to-rename-the-node-running-a-mnesia-database
>>>
>>> But got the errors below:
>>>
>>> {aborted,{'EXIT',{aborted,{bad_commit,{missing_lock,'
>>> '}}}}‌​}
>>>
>>> The reason I want to change node name is in case I deploy it in another
>>> machine with different ip address.
>>>
>>> May I have your suggestion? Many thanks.
>>>
>>> --
>>> Zhenguo Yang
>>> www.prinbit.com
>>>
>>
>>
>>
>> --
>> Zhenguo Yang
>> www.prinbit.com
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>


-- 
Zhenguo Yang
www.prinbit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160801/ffb52c2c/attachment.html>


More information about the erlang-questions mailing list