Matrix Site Migration


(Tbaatar) #1

Hi,

 

Is there a manual for moving Matrix site (earth) to a different Matrix Server/Domain?

 

We want to move one site/domain (inc metadata, media, users, trigger, content) from our current pool of Matrix sites to another Matrix server with everything intact.

 

 

Tuguldur


(Nic Hubbard) #2

Is there a manual for moving Matrix site (earth) to a different Matrix Server/Domain?

 

We want to move one site/domain (inc metadata, media, users, trigger, content) from our current pool of Matrix sites to another Matrix server with everything intact.

 

You want to use the backup script which will backup your entire install including the DB.  Then on your new site you would just unpack the backup in the correct location like /home/websites and then use the postgres commands to import the database back in. (Make sure to install all dependancies on the new server and create the DB users)

 

Then you would need to use the System Move Update script if you have changed the root path: http://manuals.matrix.squizsuite.net/server-administrator/chapters/system-move-update-script

 

I have done this quite a few times without any issues.


(Tbaatar) #3

Thanks Nic,

 

So we have to backup all 10+ domains (300,000+) assets first and then unpack all of this into the new Matrix System, and then delete the assets we don't need?


(Nic Hubbard) #4

So we have to backup all 10+ domains (300,000+) assets first and then unpack all of this into the new Matrix System, and then delete the assets we don't need?

 

So, you really just want to move over one Site asset when you have 10 on your current server?

 

Yeah, I don't think there is any way to just backup one site asset, seems impossible.


(Tbaatar) #5

Hmmm, this is going to be a painful process.

I will ask Squiz Support.


(Edison Wang) #6

We use import/export XML script to migration content at the moment.

http://manuals.matrix.squizsuite.net/server-administrator/chapters/import-scripts#import_from_xml.php

 

But those scripts are just helping around to move content. It doesn't move implementation like triggers, server specific conditions, system assets, and any custom implementation depending on urls, server specifics or sometime some hard coded url, javascript, asset id etc. There is no guaranteed and it's just impossible to make sure it can automatically move a web site to another instance of Matrix, and instantly working perfectly.

 

It will still involve manual effort to check, set up or fix implementations that got moved by the script.

It is best to talk to Squiz support and get them to estimate your project.