Back up / Restore / Copying between installations

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.
7/10/2008 4:40:55 AM
Gravatar
Total Posts 43

Back up / Restore / Copying between installations

Hi,

Is it possible to back up an individual site from a mojoportal multi-site install, then restore to that site to another multi-site install of mojoportal?

If that's not a supported feature, then I suppose the following would do the trick (SQL to demonstrate idea, not actual SQL!) : 

Copy the data/sites/(site_id) folder to destination data/sites/(site_id)

select *

from (table_name)

where SiteID = (site_id)

 

Then in the destination DB

insert *

into (table_name)

values

Has anyone any scripts to do this already, or is it implemented in the Mojoportal software already?

Thanks,

Kenny

7/10/2008 6:36:01 AM
Gravatar
Total Posts 18439

Re: Back up / Restore / Copying between installations

Hi Kenny,

There is not any current functionality to do this, but at some point I may build a utility for it. Its not as simple sql as your illustration because there are identity columns to consider.

Probably the easiest approach is to restore a backup of the whole db then delete the extra sites. However, moving db content from one installation to another is problematic if the url is going to be different in the new location, if the url is going to be the same its not too bad. What I mean is if the first installation has the site at http://www.somedomain.com and it will be the same on the new installation all is well, but if its going to be a different domain or a sub folder is either removed or introduced to the url like from http://www.somedomain.com to http://www.somedomain.com/somefolder its a problem and if it was http://www.somedomain.com/somefolder and now its going to be http://www.somedomain.com its a problem.

The reason its a problem is because the html content in the db probably contains full links in some places for images or other content links and these will be broken if the url changes, or will still point to the old location in any case. Some features in mojoportal use relative urls for images, like the Html feature, but others like th eblog use fully qualified urls for images. This is needed for any content that is exposed via rss, otherwise the images won't display in the feed.

Hope it helps,

Joe

1/20/2011 7:51:00 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: Back up / Restore / Copying between installationsHi

Hi Joe,

Saw this post from 08 and was wondering if the process for moving sites from 1 mult-site install to another has been streamlined at all or does the above process still apply?

Thanks,
John

1/20/2011 9:37:30 AM
Gravatar
Total Posts 18439

Re: Back up / Restore / Copying between installations

Hi John,

Trying to build an import/export system for all site data is a huge undertaking. Nothing has changed in this regard and nothing is expected to be done in this direction any time soon. 

Best,

Joe

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