![]() |
GeneWeb - Merging data bases |
The merging of data bases is done in two steps:
gwu foo > foo.gw gwu bar > bar.gw
gwc foo.gw bar.gw -o baseIt may happens (and probably it will) that gwc displays errors because persons are defined twice in "foo.gw" and "bar.gw". To fix that, gwc has an option "-sh" to shift the numbers of the persons and to avoid conflicts. Try:
gwc foo.gw -sh 10 bar.gw -o baseIf the value 10 does not solve the problem, try 20, 30 or 100...
You will be able to merge these people in your navigator. If "gwd" is not launched, launch it.
Then apply persons merging, which is in the part "How to make modifications in the data base" (forget the comment about the fact that it is not about "databases merging").
To do the cleaning up of the base "base" (you can make at any time, and even several times), use again an interactive window. Type:
gwu base > base.gw gwc base.gw -o base
Note that if you want to scratch the old base "foo", type simply "-o foo" in this second command:
gwc base.gw -o foo