[erlang-questions] Copy of mnesia tables from a node to a another node without linkage

Greg Burri greg.burri@REDACTED
Sun Jul 27 20:10:38 CEST 2008


Ok, thanks you ! I will try these two solutions.

/Greg

On Sun, Jul 27, 2008 at 2:14 AM, t ty <tty.erlang@REDACTED> wrote:
> IIRC any dump of the table would actually encode the node name in it.
> i.e if your other node shares the same name you are ok. Otherwise you
> will have to 'edit' the node's name in.  See the 'educational'
> mnesia:dump_to_textfile/1
>
> Personally I would consider linking the 2 nodes, let mnesia sync then
> remove the links as an easy way out.
>
> t
>
> On Fri, Jul 25, 2008 at 6:00 PM, Greg Burri <greg.burri@REDACTED> wrote:
>> Hi everybody.
>>
>> I want to copy some tables from a node to an another and I want to
>> keep the nodes independent.
>>
>> I have some data in production and I want to upgrade the modules in
>> production but before that I have to make some preproduction tests
>> with the production data (without destroying my production data :o]).
>>
>> This "how-to" : http://www.trapexit.org/Distributing_a_Mnesia_schema
>> works great but obviously theses nodes are linked...
>>
>> I try to use mnesia:backup() in the production node and then
>> mnesia:restore() to the preproduction node but it doesn't work. The
>> saved data are linked to the first node.
>>
>>
>> Does anyone have an idea about this ?
>>
>> TIA
>>
>>
>> /Greg
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>



More information about the erlang-questions mailing list