Best way to replicate the database between Simple CMS installations?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
learningcms
New Member
New Member
Posts: 9
Joined: Tue Mar 30, 2010 8:41 pm

Best way to replicate the database between Simple CMS installations?

Post by learningcms »

I have a simpleCMS installed on two different computers.  However, they both need to use the same information.  They use two different databases...they do not share the same database.

Originally I wanted to use sqlite so i could transfer the database with each simpleCMS installation but I have read it isn't supported.  If anyone knows different please tell me.  I only need basic functionality, no third party modules, just basic menu, articles, pages, etc.

Outside of sqlite does anyone know the best way to replicate the database between installations?  Maybe a module that goes out and updates?  I don't know.

Thank you for any help.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Best way to replicate the database between Simple CMS installations?

Post by Nullig »

The Sitepusher module may be what you're looking for.

Nullig
Duketown

Re: Best way to replicate the database between Simple CMS installations?

Post by Duketown »

learningcms,

You don't talk about the frequency. How up to date should the target site when compared with the source site?
Is it realy a duplicate of the database?

Duketown
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Best way to replicate the database between Simple CMS installations?

Post by Rolf »

Perhaps with both sites using
http://dev.cmsmadesimple.org/projects/mysqldump
Export DB in the first site, move dumpfile and import in the second site.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
learningcms
New Member
New Member
Posts: 9
Joined: Tue Mar 30, 2010 8:41 pm

Re: Best way to replicate the database between Simple CMS installations?

Post by learningcms »

Duketown wrote: learningcms,

You don't talk about the frequency. How up to date should the target site when compared with the source site?
Is it realy a duplicate of the database?

Duketown
Whenever they need to is the frequency.  Probably not that often but neither site changes that much.  The target, the copy, is an exact duplicate and should at all times be so.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Best way to replicate the database between Simple CMS installations?

Post by Dr.CSS »

Point them both to the same DB in the config, any change on one will be reflected in the other...

Having said that, if you have 2 sites with the same content "live" on the web you will get hit by search engines as having duplicate content and bad rankings...
learningcms
New Member
New Member
Posts: 9
Joined: Tue Mar 30, 2010 8:41 pm

Re: Best way to replicate the database between Simple CMS installations?

Post by learningcms »

Dr.CSS wrote: Point them both to the same DB in the config, any change on one will be reflected in the other...

Having said that, if you have 2 sites with the same content "live" on the web you will get hit by search engines as having duplicate content and bad rankings...
I can't have them on the same DB.  That's the whole problem.  I need two exactly duplicate sites with two separate databases that are the exact same.

I am considering developing with php and using truncate and insert select.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Best way to replicate the database between Simple CMS installations?

Post by Dr.CSS »

No idea why you need this, as you never really explain it...

But, export the DB from one and import it to the other when needed, as long as they have the same modules etc. they will be the same...
Post Reply

Return to “CMSMS Core”