[erlang-questions] Copy of mnesia tables from a node to a another node without linkage
Mon Jul 28 11:33:05 CEST 2008
You may also use the code in the change_node_name example in the
Mnesia User's Guide:
Håkan Mattsson (uabhams)
On Sun, 27 Jul 2008, Greg Burri wrote:
gb> Date: Sun, 27 Jul 2008 20:10:38 +0200
gb> From: Greg Burri <>
gb> To: t ty <>,
gb> "Erlang-Questions (E-mail)" <>
gb> Subject: Re: [erlang-questions] Copy of mnesia tables from a node to a
gb> another node without linkage
gb> Ok, thanks you ! I will try these two solutions.
gb> On Sun, Jul 27, 2008 at 2:14 AM, t ty <> wrote:
gb> > IIRC any dump of the table would actually encode the node name in it.
gb> > i.e if your other node shares the same name you are ok. Otherwise you
gb> > will have to 'edit' the node's name in. See the 'educational'
gb> > mnesia:dump_to_textfile/1
gb> > Personally I would consider linking the 2 nodes, let mnesia sync then
gb> > remove the links as an easy way out.
gb> > t
gb> > On Fri, Jul 25, 2008 at 6:00 PM, Greg Burri <> wrote:
gb> >> Hi everybody.
gb> >> I want to copy some tables from a node to an another and I want to
gb> >> keep the nodes independent.
gb> >> I have some data in production and I want to upgrade the modules in
gb> >> production but before that I have to make some preproduction tests
gb> >> with the production data (without destroying my production data :o]).
gb> >> This "how-to" : http://www.trapexit.org/Distributing_a_Mnesia_schema
gb> >> works great but obviously theses nodes are linked...
gb> >> I try to use mnesia:backup() in the production node and then
gb> >> mnesia:restore() to the preproduction node but it doesn't work. The
gb> >> saved data are linked to the first node.
gb> >> Does anyone have an idea about this ?
gb> >> TIA
gb> >> /Greg
gb> >> _______________________________________________
gb> >> erlang-questions mailing list
gb> >> http://www.erlang.org/mailman/listinfo/erlang-questions
gb> erlang-questions mailing list
More information about the erlang-questions