Page 1 of 1
Best way to replicate the database between Simple CMS installations?
Posted: Wed Oct 13, 2010 5:24 pm
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.
Re: Best way to replicate the database between Simple CMS installations?
Posted: Wed Oct 13, 2010 6:36 pm
by Nullig
The Sitepusher module may be what you're looking for.
Nullig
Re: Best way to replicate the database between Simple CMS installations?
Posted: Wed Oct 13, 2010 6:37 pm
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
Re: Best way to replicate the database between Simple CMS installations?
Posted: Wed Oct 13, 2010 6:45 pm
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.
Re: Best way to replicate the database between Simple CMS installations?
Posted: Thu Oct 14, 2010 1:39 pm
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.
Re: Best way to replicate the database between Simple CMS installations?
Posted: Thu Oct 14, 2010 6:25 pm
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...
Re: Best way to replicate the database between Simple CMS installations?
Posted: Fri Oct 15, 2010 7:47 pm
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.
Re: Best way to replicate the database between Simple CMS installations?
Posted: Sat Oct 16, 2010 3:34 am
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...