Export setting up to use on another site

1 year 2 months ago #332830 by AlexRag
Is there a way to export a complete CB or even just a CBSubs setup done on one website and export it to use on another site altogether? 

 

Please Log in to join the conversation.

1 year 2 months ago #332832 by krileon
Replied by krileon on topic Export setting up to use on another site
Migrate all database tables with the following prefixes

cbsubs_
comprofiler_
groupjive_

Next migrate the following folders.

/administrator/components/com_comprofiler
/components/com_comprofiler
/images/comprofiler

There's several other folders pertaining to Joomla plugins and Joomla modules that you can either just re-install or migrate them from their respective Joomla folders. Core CB does have Joomla plugins and modules though so usually it's best to just install CB over the top of it self once done to cover those or you'll need to move those as well from their respective Joomla folders.

That migrates basically 99% of CB. The main issue is the following Joomla tables that we depend on.

_users
_user_usergroup_map
_usergroups
_viewlevels

You'll need to be sure you handle those as well otherwise your users won't exist in Joomla and any usergroup/viewaccesslevel settings would be broken.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

1 year 2 months ago #332833 by AlexRag
Replied by AlexRag on topic Export setting up to use on another site
Thanks!  

1.  I take it it's best to install the base CB and any other plugins onto the other site first and then migrate (and potentially) override tables.

2. What about on a site that already had some form of setup already vs a clean base install?   Is that asking for trouble?

3. If I have done an extensive amount of language overrides, are the table you noted looking after that part as well?

 

Please Log in to join the conversation.

1 year 2 months ago #332835 by krileon
Replied by krileon on topic Export setting up to use on another site

1.  I take it it's best to install the base CB and any other plugins onto the other site first and then migrate (and potentially) override tables.

Yes, typically it's a good idea to have a blank template of what you want. So basically install CB and any plugins you normally would want. Then migrate the data. Doing it this way you only need to migrate the /images/comprofiler folder to move stored files.

2. What about on a site that already had some form of setup already vs a clean base install?   Is that asking for trouble?

You'd need to be careful about overriding existing data. Typically this is a nightmare waiting to happen though if you have already registered users as you'll cause a cascading problem of conflicting user ids. For example what do you need if the user id 30 exists on both sites? Big problem to have.

3. If I have done an extensive amount of language overrides, are the table you noted looking after that part as well?

Language overrides are entirely file based. My language override block post below shows where they are. You'd need to migrate those yourself.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived

For example default language overrides would be in the following folder.

/components/com_comprofiler/plugin/language/default_language


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

1 year 2 months ago #332838 by AlexRag
Replied by AlexRag on topic Export setting up to use on another site

1.  I take it it's best to install the base CB and any other plugins onto the other site first and then migrate (and potentially) override tables.

Yes, typically it's a good idea to have a blank template of what you want. So basically install CB and any plugins you normally would want. Then migrate the data. Doing it this way you only need to migrate the /images/comprofiler folder to move stored files.


So I would not have to migrate these tables? 
cbsubs_
comprofiler_
groupjive_

or these folders?
/administrator/components/com_comprofiler
/components/com_comprofiler

2. What about on a site that already had some form of setup already vs a clean base install?   Is that asking for trouble?

You'd need to be careful about overriding existing data. Typically this is a nightmare waiting to happen though if you have already registered users as you'll cause a cascading problem of conflicting user ids. For example what do you need if the user id 30 exists on both sites? Big problem to have.


Right, I had not thought about that.  If users already exist could be a nightmare.   I think I am most concerned about just migrating things like the CBSubs plans, CB setup and any other plug setup like Groups, Mailer, etc.

I was thinking of then (if users exist already on the new site) moving everyone manually to the respective plans.  Or in my use case, have each existing user upgrade to the appropriate plans from the free plan I have set up.

Not sure if this is possible.

Thanks!
 

Please Log in to join the conversation.

1 year 2 months ago #332842 by krileon
Replied by krileon on topic Export setting up to use on another site

So I would not have to migrate these tables? 

You will if you're moving data from 1 site to another.

or these folders?

You don't need to migrate those folders if you've installed a clean CB with the plugins you intend to use already.

Right, I had not thought about that.  If users already exist could be a nightmare.   I think I am most concerned about just migrating things like the CBSubs plans, CB setup and any other plug setup like Groups, Mailer, etc.

If you're not migrating the user data then you don't need to migrate _comprofiler for example which contains user data. There's several others you could probably exclude. I suggest checking your database and deciding for yourself what you may or may not need. Many plugins configurations are stored in _comprofiler_plugins in their params column so it maybe best to just move their params column data instead of the entire row so you don't break plugin ids.

Maybe in the future we'll provide some sort of tool to help with this, but for now you need to be well versed in SQL and the database structure mainly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.232 seconds

Facebook Twitter LinkedIn