How to transfer a Matrix system from one server to another

can anyone give me a steps of transferring my site(run by mysource matrix in app2 server) to another server(app3) ?


sori for my poor english

You need to backup your PostgreSQL database (using pg_dump) and the entire mysource_matrix folder and restore them onto a new server. We provide a backup script (in the scripts/ folder) that will create a single tarball containing your entire database and filesystem. You can run this script to create the backup and then copy the tarball across to your new server, unpack it and restore the data into PostgreSQL.



IN my app2 server there are several sites(eg: site1, site2, site3..., etc) that are already setup and running then what if i just want to transfer/copy one site only(eg: site2) to another server(app3) that also has Matrix installed?

How will I do that? What are the particular directories/files that I have to copy and what tables/records in the DB will I also backup and copy?

Do you have a tool for that?

I will appreciate all your help in this matter.

You can't copy a single site from one Matrix install to another – in fact, you can't copy data between Matrix systems at all. You would need to recreate the entire site in the other copy of Matrix.

would der be a problem if we will have 2 matrix instance installed in one server.


No, you can't have as many Matrix installs as your hardware resources will allow.

my question was :

would der be a problem if we will have 2 matrix instance installed in one server?

and your answer :

No, you can't have as many Matrix installs as your hardware resources will allow.



so you mean that der would be no problem if we will have 2 matrix instance installed in one server

I think Avi meant "No, you CAN…"

Correct, sorry. :slight_smile:


You can have as many installations of Matrix as your hardware allows.

Also, if the Matrix system root on the destination server is going to be different, don’t forget to run [font=“Courier New”]scripts/system_move_update.php[/font].


does it mean that we will not do some installation process if we copy the entire matrix instance in app2 to app3(server) ?

No, you don't. Once Matrix is installed, you don't have to run the installation process again. You can just back it up and restore it on another server. As long as you backup both the database and the filesystem. There is data in *both* locations and you must have *both* for Matrix to work properly.

could u give me some steps on how to back-up the entire database and filesystem?

http://matrix.squiz.net/resources/upgrading/backup-managemen

This is my scenario:


1.) I have a matrix installation running on one server(app2) with several sites setup already.



2.) I also have another new matrix installation running on another server(app3 - dev server).



What I want to do is to copy the matrix in app2 to app3 server as a 2nd matrix instance running both in

app3 server. Is there a problem with this setup?



Also as I read on your "Backup Management Guide" document, it says there that during the restoration, it will

remove my existing system including file system data and database data.



My concern is this. Since both Matrix instance will use/access the same PostgreSQL server, does it mean that

during the restoration process, it will delete all the data(db and tables) that are being used by the 1st instance?

How can I prevent this?



In short, I just want to copy and restore matrix from app2 server to app3 server as a new matrix

instance w/out affecting the first matrix instance as much as possible.





Thanks, I will appreciate all your help.

All you need to do is backup app2 and install it on app3 using a different file system location, URL and DB name. Just make sure you create a new postgres database on app3 first, then import all your data from app2 into it as per the restore instructions on the backup management guide. When you have selected a file system location to place this second system, run the system_move_update.php script (described in another of your threads) to tell this second matrix install where it's new location is.

If you are unsure on how to do any of this, you should contact an experienced Linux system administrator and PostgreSQL database administrator. You could also contact Squiz Support to get a quote on getting us to configure this for you.


Also, please name your topics properly. Saying "Pls help" for a topic title doesn't give us any idea of what question you're actually asking and makes it more difficult for us to respond.



Lastly, please don't start a new topic for every question. Use the search facility to see if the same or similar question has already been asked, or post in an existing thread. You asked about this very same question only a few days ago, so I've merged the two topics together.

Hello,


I have already backup(from app2 server) and restore(to app3 server) following all your instructions and everything

goes smoothly.



The problem is that I can't login into the new system and there is no design (refer to the image below)







The error msg in the login screen is "Login key incorrect"





For your reference, this is my virtual host settings in apache:



NameVirtualHost *:80



#First Matrix instance in app3 server

<VirtualHost *:80>

ServerName matrix.bigblue002.com

ServerAlias matrixtest.loggedongroup.com

ServerAlias matrixtrial.loggedongroup.com



DocumentRoot /home/websites/mm3161/core/web



<Directory "/home/websites/mm3161">

Options -Indexes FollowSymLinks

Order deny,allow

Deny from all

</Directory>

<Directory "/home/websites/mm3161/core/web">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/mm3161/core/lib">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/mm3161/data/public">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/mm3161/fudge">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>



Alias "/__data" "/home/websites/mm3161/data/public"

Alias "/__lib" "/home/websites/mm3161/core/lib"

Alias "/__fudge" "/home/websites/mm3161/fudge"

Alias "/" "/home/websites/mm3161/core/web/index.php/"



</VirtualHost>



#Second Matrix instance in app3 server(backup from matrix in app2 server)

<VirtualHost *:80>

ServerName matrix02.bigblue002.com

ServerAlias www.howmuchisenough.net bigblue001.com howmuchisenough.net www.bigblue001.com burdetteanalysis.com.au www.burdetteanalysis.com.au burdetteanalysis.com www.burdetteanalysis.com roseconveyancing.com.au www.roseconveyancing.com.au peppercornservices.com www.peppercornservices.com peppercornservices.com.au www.peppercornservices.com.au peppercornservices.org.au www.peppercornservices.org.au karelle.org www.karelle.org karelle.org.au www.karelle.org.au bookbiz.com.au www.bookbiz.com.au bookbiz.net.au www.bookbiz.net.au completeindustrysolutions.com.au www.completeindustrysolutions.com.au photos-on-canvas.com.au www.photos-on-canvas.com.au saftv.com.au www.saftv.com.au sydney-film-school.com www.sydney-film-school.com crmnow.com.au www.crmnow.com.au crmnow.biz www.crmnow.biz myfitmate.com.au www.myfitmate.com.au myfitmate.bigblue001.com myfitmate.quantum-interactive.com loggedongroup.com.au www.loggedongroup.com.au loggedongroup.com www.loggedongroup.com sbc.loggedongroup.com sueanddaughters.com www.sueanddaughters.com sueanddaughters.com.au www.sueanddaughters.com.au sueismaelanddaughters.com www.sueismaelanddaughters.com sueismaelanddaughters.com.au www.sueismaelanddaughters.com.au sueismailanddaughters.com www.sueismailanddaughters.com sueismailanddaughters.com.au www.sueismailanddaughters.com.au sueismielanddaughters.com www.sueismielanddaughters.com sueismielanddaughters.com.au www.sueismielanddaughters.com.au



DocumentRoot /home/websites/abp3161/core/web



<Directory "/home/websites/abp3161">

Options -Indexes FollowSymLinks

Order deny,allow

Deny from all

</Directory>

<Directory "/home/websites/abp3161/core/web">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/core/lib">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/data/public">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/fudge">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>



Alias "/__data" "/home/websites/abp3161/data/public"

Alias "/__lib" "/home/websites/abp3161/core/lib"

Alias "/__fudge" "/home/websites/abp3161/fudge"

Alias "/" "/home/websites/abp3161/core/web/index.php/"

</VirtualHost>



Thanks, I will appreciate all your help.

Have you changed main.inc on your new copy to match the system root URLs in Apache's httpd.conf? Try to login on one of the URLs that is properly configured to see if that works.

Hello,


I have already solved the problem above but I am still confused with the settings of our old matrix installation in app2 server.



Based on its Virtual Host entry in httpd.conf(Apache configuration):



<VirtualHost *:80>

ServerName abp.clients.squiz.net

ServerAlias www.howmuchisenough.net bigblue001.com howmuchisenough.net www.bigblue001.com burdetteanalysis.com.au www.burdetteanalysis.com.au burdetteanalysis.com www.burdetteanalysis.com roseconveyancing.com.au www.roseconveyancing.com.au peppercornservices.com www.peppercornservices.com peppercornservices.com.au www.peppercornservices.com.au peppercornservices.org.au www.peppercornservices.org.au karelle.org www.karelle.org karelle.org.au www.karelle.org.au bookbiz.com.au www.bookbiz.com.au bookbiz.net.au www.bookbiz.net.au completeindustrysolutions.com.au www.completeindustrysolutions.com.au photos-on-canvas.com.au www.photos-on-canvas.com.au saftv.com.au www.saftv.com.au sydney-film-school.com www.sydney-film-school.com crmnow.com.au www.crmnow.com.au crmnow.biz www.crmnow.biz myfitmate.com.au www.myfitmate.com.au myfitmate.bigblue001.com myfitmate.quantum-interactive.com loggedongroup.com.au www.loggedongroup.com.au loggedongroup.com www.loggedongroup.com sbc.loggedongroup.com sueanddaughters.com www.sueanddaughters.com sueanddaughters.com.au www.sueanddaughters.com.au sueismaelanddaughters.com www.sueismaelanddaughters.com sueismaelanddaughters.com.au www.sueismaelanddaughters.com.au sueismailanddaughters.com www.sueismailanddaughters.com sueismailanddaughters.com.au www.sueismailanddaughters.com.au sueismielanddaughters.com www.sueismielanddaughters.com sueismielanddaughters.com.au www.sueismielanddaughters.com.au



DocumentRoot /home/websites/abp3161/core/web



<Directory "/home/websites/abp3161">

Options -Indexes FollowSymLinks

Order deny,allow

Deny from all

</Directory>

<Directory "/home/websites/abp3161/core/web">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/core/lib">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/data/public">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>

<Directory "/home/websites/abp3161/fudge">

Options -Indexes FollowSymLinks

Order allow,deny

Allow from all

</Directory>



Alias "/__data" "/home/websites/abp3161/data/public"

Alias "/__lib" "/home/websites/abp3161/core/lib"

Alias "/__fudge" "/home/websites/abp3161/fudge"

Alias "/" "/home/websites/abp3161/core/web/index.php/"



</VirtualHost>



It is stated above that the server name is "abp.clients.squiz.net" but I cannot find that domain in our app2

settings in rackspace(our hosting server). I am not really an expert in Linux/Apache configuration so

I will really appreciate if you can enlighten me on this one.



Also, I noticed that there is a directory(/usr/local/squiz_server) in app2 and inside that directory,

there is a file named server.conf and it has some settings regarding the matrix installation. Is this

directory related to the matrix installation? If it is then do I still need to copy this directory to

app3 server since I made a backup there for this matrix instance? I wonder why this is not mention

in your installation and backup and restore guidelines.



I will appreciate all your help on this matter.