Re: how to copy a sitegroup in midgard 1.7.2

Ingo Herz <[email protected]> Thu, 20 Oct 2005 15:31:14 +0200
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
Am Donnerstag, 20. Oktober 2005 14:46 schrieb Eero af Heurlin:

> Ingo Herz wrote:
> > I'm trying to copy a sitegroup now. Could someone please point me to a
> > doc or explain how I have to do that?
>
> A whole sitegroup ? I'd guess the best way would be to export it (with
> exorcist, repligard has issues in 1.7.x when exporting) and then import
> to new SG, though the guids would have to be randomized somehow...
>
> Another option would be to write a script to read all objects in SGx and
> then create new objects with identical data in SGy (this naturally must
> be done ion SG0, also make sure you do the copies in such way that
> dependencies are always present).
>
> All in all copying a whole sitegroup to another sounds rather complex,
> or what do you want to do, replicate from one server/database to another
> (use exorcist) ? Explaining the scenario would help.

A customer has several hotels. The websites have nearly the same layout (only 
very little images/text differ) and are edited by different people. So I want 
to copy the site from hotel A in SGA to hotel B in SGB, adjust the text and 
images and continue with the next one. All this sitegroups are located in the 
same midgard-DB.

In former days I exported the source with repligard (scheme withsg), imported 
as admin (without SG), got a new unnamed SG, renamed it and all was fine. 
This doesn't work anymore. Tried to export and import with schem i18n_po, but 
the result is somewhat mixed up.

thanks,
Ingo