Hello Robert,
Robert Myhren wrote:
Hi, I have some problems replicating a company from one server to another. When I replicate lets say company "Novap", it turns up as "Unnamed" on the other server. Under Company in Aegir an error in company is reported. The webpages are not present.
Yes, the whole sg replications have always been somewhat of a pain. But here's the process I've been using.
1. Replicate all content in a sitegroup WITHOUT sg information. (Basically same what you've done on Server 1. but using the repligard.xml schema (not _withsg).)
2. Create a new sitegroup to the destination server.
3. Import the package from the step 1. and use an account from the sg created in the step 2. This way you'll end up with the contents in the correct sitegroup. However, you'll need to tune attachment server host prefixes and possibly some other places thanks to changed sg guid. (If you can, be dirty and swap the new sg guid to the old one in MySQL console.)
Note: You're using MultiLang on the new server?
That will complicate many things, as the package needs to be converted before import. As a result of datagard, everything will be in the sg0, and you'll have to move them back to correct sg (by hand in MySQL console, or by some mgd script).
If someone knows a better, and easier way, please let us know!
Cheers!
//Henri
Server 1. I replicate the webpages with : repligard -c /etc/midgard/repligard.conf -a -e novap2.xml.gz
<?xml version="1.0" encoding="UTF-8" ?> <Repligard xmlns="http://www.midgard-project.org/repligard/1.4"> <!-- Database description --> <!-- Path to optionally compressed Repligard schema file --> <database schema="/usr/share/midgard/repligard_withsg.xml" name="midgard" username="midgard" password="midgard" encoding="UTF-8" blobdir="/var/lib/midgard/blobs/midgard" /> <!-- Login account description for Repligard operation --> <login username="robert+NOVAP" password="password" /> <replicate all="yes"/> </Repligard> /etc/midgard/repligard.conf lines 1-19/19 (END)
Server 2.
Then I import it with : repligard -c /etc/midgard/repligard.conf -a -i novap2.xml.gz
<?xml version="1.0" encoding="UTF-8" ?> <Repligard xmlns="http://www.midgard-project.org/repligard/1.4"> <!-- Database description --> <!-- Path to optionally compressed Repligard schema file --> <database schema="/usr/share/midgard/repligard_i18n_po.xml" name="midgard" username="robert" password="Bull00" encoding="UTF-8" blobdir="/var/lib/midgard/blobs/midgard" /> <!-- Login account description for Repligard operation --> <login username="admin" password="password" /> <replicate all="yes"/> </Repligard> /etc/midgard/repligard.conf lines 1-19/19 (END)
Can anybody give me a hand with this issue?
Robert
-- Henri Kaukola [EMAIL PROTECTED] Consultant Tel: +358-20-198 6037 Nemein Oy http://www.nemein.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
