Migrating content from mojo test site to production site

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/9/2009 11:06:52 PM
Gravatar
Total Posts 46

Migrating content from mojo test site to production site

I have a multi-site test environment for mojoPortal and need to migrate site content to a production multi-site environment. Are there any tools or scripts available for doing this? Anyone have a suggestion as to where I'd start with this?

Thanks       /Bob

10/10/2009 12:32:31 AM
Gravatar
Total Posts 550

Re: Migrating content from mojo test site to production site

Hi Bob,

You can backup your databse and restore it on your production database server, and copy your web folder from local machine to production server.

In this way some page probably would not show correctly,but you can go to the Administration->Advanced Tools->URL Manager and correct those.

Hope Helps.

Asad

2/2/2010 5:18:17 PM
Gravatar
Total Posts 39

Re: Migrating content from mojo test site to production site

Do the test and production sites environment have to extactly match? Can we choose which of the test site to bring across to production?

 

On my test server I have created a test site for exploring mojo portal. When I move to production I do not want to bring this site across. If this won't work I can create a development environment that will mirror production (i.e. not include any test sites or test data)

2/2/2010 9:39:31 PM
Gravatar
Total Posts 46

Re: Migrating content from mojo test site to production site

I'm not looking to be critical because I would much prefer that the development team focus on new functionality, but ...

 

The need to migrate mojoPortal sites freely is not a contrived scenario. Always, with content management solutions, there is a trade-off between the idea that content can be versioned and the site itself can be handled the same way. The truth is that mojoPortal lacks a meaningful content backup/restore capability and, in truth, it should not be that hard to create. Perhaps, instead of whining about today's reality I should just write the solution. My only out is that the data structure is not public and needs to be documented so it would be waaaaaaaayyyy easier to write the solution.

 

Just my 10 cents

 

Bob

2/3/2010 1:58:34 PM
Gravatar
Total Posts 18439

Re: Migrating content from mojo test site to production site

Hi Bob,

While I appreciate your perspective, my thoughts are as follows:

Moving a mojoportal site means copying and moving the files and backing up and restoring the database on a different machine.

Most good hosting companies provide tools to assist with backing up a site and its database. Most database platforms include tools or tools are available for backup and restoring of databases and you don't need to know anything about the schema to use them.

A Web CMS does not need to replicate that kind of functionality, it is kind of like expecting MS Word to backup all your Word docs, they make backup software for that, it is not built into Word.

Someday I will make an add on paid product for exporting and importing mojoportal data as xml so it can be done across database platforms but it is a high end expectation to be able to do this.

There is nothing hidden about the mojoPortal database schema, you can inspect and if needed document the schema using database platform included or add on tools. I mean anyone with SQL Management tools can browse the tables and schema and/or make table diagrams. 

End users do not need to be concerned with the database schema in order to backup the database. Any developer worth their salt knows how to inspect a database but I don't publish documentation about the database schema because developers should not access included tables directly, they should use the business objects and or create their own tables for custom features.

I am building software for managing web sites not for managing databases, that job is already done by the database vendors.

As far as deleting test sites that can be done from the UI either before or after restoring a backup to a new server.

Best,

Joe

2/3/2010 5:05:37 PM
Gravatar
Total Posts 46

Re: Migrating content from mojo test site to production site

Thanks, Joe.

I take all of your points with the exception that my test sites are nearly always a dedicated mojo install (Site 1) and, in production, I run shared installs. So, site 1 in test is site 5 in production and that is proliferated throughout the data model and, in fact, in html content where links have been established, etc. That's what I'm keen to automate as that takes, literally, hours and cannot be accomplished as simply as you state.


I'll play with the concepts some more and, if I get a utility built that works, I'll share the work product.

Thanks for the response and the great work. I'm really not whining. Just being lazy :-)

2/5/2010 6:12:09 AM
Gravatar
Total Posts 18439

Re: Migrating content from mojo test site to production site

I would make a backup of production db and restore it to dev and keep ids the same on dev and production.

Best,

Joe

2/5/2010 10:07:18 AM
Gravatar
Total Posts 46

Re: Migrating content from mojo test site to production site

Ha! THat's why you are the professional software developer and I'm a wannabe! :-) It would ahve taken months for that penny to drop. Thank you!

You must sign in to post in the forums. This thread is closed to new posts.