I'm trying to find some further documentation or guidance (if any) on site duplication and then master-slave replication.
The scenario is this:
We have 2 Wiki's, each in their own network. The first wiki is available to our users now. The second one is a clone of the first which was made a couple of months ago and hasn't been touched since. What I'd like to do is have the clone be the slave and the first one be the master. I'm thinking that the database would not contain the extensions, skins, possibly photos, templates ? So I would have to push those over. The clone or slave would only be for reading and not writing.
Can anyone give any guidance ?
thanks, Chris
On 12 May 2012 17:04, chris chris@teslagovernment.com wrote:
We have 2 Wiki's, each in their own network. The first wiki is available to our users now. The second one is a clone of the first which was made a couple of months ago and hasn't been touched since. What I'd like to do is have the clone be the slave and the first one be the master. I'm thinking that the database would not contain the extensions, skins, possibly photos, templates ? So I would have to push those over. The clone or slave would only be for reading and not writing. Can anyone give any guidance ?
I did a horrible deliberately-broken version of this. Wiki A was live, wiki B was read-only. Every night, a cron job would export wiki A to XML, and half an hour later another cron job would import said XML to wiki B. I didn't copy images over, but I expect just rsyncing the images/ folder would have worked. (If it doesn't, let me know.)
- d.
On 12/05/12 18:23, David Gerard wrote:
I did a horrible deliberately-broken version of this. Wiki A was live, wiki B was read-only. Every night, a cron job would export wiki A to XML, and half an hour later another cron job would import said XML to wiki B. I didn't copy images over, but I expect just rsyncing the images/ folder would have worked. (If it doesn't, let me know.)
A better approach would be to make site B database be a read-only slave of A. Then use the nighly job to rsync --delete the folder (first time it would have to copy everything, but then only images / math changes).
I don't think rsyncing the images would have worked with your way, since you'd also need to importImages.php With the database replication, the rows in the image table are already there, so it's no problem.
I'm using mysql replication now for another application so I know what that's about. But for rsync, not sure what you mean about --delete the folder. Would you suggest rsyncing the whole mediawiki folder ? And I'm not sure what you mean about 'math changes'.
On 5/13/12 11:16 AM, Platonides wrote:
On 12/05/12 18:23, David Gerard wrote:
I did a horrible deliberately-broken version of this. Wiki A was live, wiki B was read-only. Every night, a cron job would export wiki A to XML, and half an hour later another cron job would import said XML to wiki B. I didn't copy images over, but I expect just rsyncing the images/ folder would have worked. (If it doesn't, let me know.)
A better approach would be to make site B database be a read-only slave of A. Then use the nighly job to rsync --delete the folder (first time it would have to copy everything, but then only images / math changes).
I don't think rsyncing the images would have worked with your way, since you'd also need to importImages.php With the database replication, the rows in the image table are already there, so it's no problem.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 14/05/12 16:38, chris wrote:
I'm using mysql replication now for another application so I know what that's about. But for rsync, not sure what you mean about --delete the folder. Would you suggest rsyncing the whole mediawiki folder ? And I'm not sure what you mean about 'math changes'.
The --delete parameter of rsync makes it not only copy new files, but also delete those local files which are not in the remote side.
Changes in files during normal MediaWiki operation will usually be image uploads (deletions, thumbnailing...) and by extensions such as math (that which powers <math> tags).
On Wed, May 16, 2012 at 1:58 PM, Platonides Platonides@gmail.com wrote:
On 14/05/12 16:38, chris wrote:
I'm using mysql replication now for another application so I know what that's about. But for rsync, not sure what you mean about --delete the folder. Would you suggest rsyncing the whole mediawiki folder ? And I'm not sure what you mean about 'math changes'.
The --delete parameter of rsync makes it not only copy new files, but also delete those local files which are not in the remote side.
Changes in files during normal MediaWiki operation will usually be image uploads (deletions, thumbnailing...) and by extensions such as math (that which powers <math> tags).
s/local/destination/; s/remote/source/;
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
On 13/05/12 08:43, Stip wrote:
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
In which way it doesn't work? 1.17.4 seems to conditionally render the Search for "{{PAGENAME}}" but not to show the link.
As for getting the old behavior, change in Skin.php, function addToSidebar (line 1237) the wfMsgForContentNoTrans to wfMsgForContent (you shouldn't be doing these things, though What about hiding it with CSS?)
Am 13.05.2012 17:04, schrieb Platonides:
On 13/05/12 08:43, Stip wrote:
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
In which way it doesn't work? 1.17.4 seems to conditionally render the Search for "{{PAGENAME}}" but not to show the link.
In 1.17.0 it showed the searchlink, if the page you were viewing was in the article namespace.
Now it only shows "Search for "{{PAGENAME}}"" without showing the external link.
As for getting the old behavior, change in Skin.php, function addToSidebar (line 1237) the wfMsgForContentNoTrans to wfMsgForContent (you shouldn't be doing these things, though What about hiding it with CSS?)
Thanks! The point of the whole thing is to have external links which look like this: http://www.forum.de/search.php?keywords=%7B%7BPAGENAME%7D%7D%7B%7B!%7D%7D Forum
So if you follow that link, it takes you to a searchpage of that forum with the name of the current article as searchparameter. To achieve that, I need PAGENAME to work in the sidebar. Is above solution the only one who does this? As for hiding it with CSS: First, I have no clue how to do that, and second, if PAGENAME doesnt work in the sidebar, the whole concept does not work. Or am I wrong on that?
Thanks for the reply! Stip
On 13/05/12 17:17, Stip wrote:
The point of the whole thing is to have external links which look like this: http://www.forum.de/search.php?keywords=%7B%7BPAGENAME%7D%7D%7B%7B!%7D%7D Forum
Ok, I wasn't testing with {{!}} template.
So if you follow that link, it takes you to a searchpage of that forum with the name of the current article as searchparameter. To achieve that, I need PAGENAME to work in the sidebar. Is above solution the only one who does this?
{{PAGENAME}} works by default in the sidebar, but not in the sidebar titles.
As for hiding it with CSS: First, I have no clue how to do that, and second, if PAGENAME doesnt work in the sidebar, the whole concept does not work. Or am I wrong on that?
If you had: *Search for this page ** http://example.net/%7B%7BPAGENAMEE%7D%7D | Link
you can add in [[MediaWiki:Common.css]] #p-Search_for_this_page { display: none } .ns-0 #p-Search_for_this_page { display: block }
Am 13.05.2012 18:36, schrieb Platonides:
If you had: *Search for this page ** http://example.net/%7B%7BPAGENAMEE%7D%7D | Link
you can add in [[MediaWiki:Common.css]] #p-Search_for_this_page { display: none } .ns-0 #p-Search_for_this_page { display: block }
Thanks very much for this, works like a charm! :D
Greetings Stip
Just out of curiosity, what does this do? Thanks, Bruce
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
If the page you are viewing is in the article namespace, it shows an external link to a forum searchpage, with the name of the page you are viewing as the search parameter. Example:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **http://www.forum.de/search.php?keywords=%7B%7BPAGENAME%7D%7D%7B%7B!%7D%7D Forum | }}
Am 13.05.2012 17:53, schrieb Bruce Whealton:
Just out of curiosity, what does this do? Thanks, Bruce
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
⚡az⚡🌀Awesome{}amaZing🌀 On May 13, 2012, at 11:53 PM, "Bruce Whealton" bruce@whealton.info wrote:http://twitter.com/kbtomo30 http://facebook.com/jesrel.garcia
Just out of curiosity, what does this do? Thanks, Bruce
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Aug 19, 2012, at 1:21 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:
⚡az⚡🌀Awesome{}amaZing🌀 On May 13, 2012, at 11:53 PM, "Bruce Whealton" bruce@whealton.info wrote:http://twitter.com/kbtomo30 http://facebook.com/jesrel.garcia
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Aug 19, 2012, at 1:23 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:
On Aug 19, 2012, at 1:21 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:🌀⚡
⚡az⚡🌀⚡Awesome{}amaZing⚡
🌀 http://twitter.com/kbtomo30 http://facebook.com/jesrel.garcia
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Aug 19, 2012, at 1:27 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:
On Aug 19, 2012, at 1:23 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:
On Aug 19, 2012, at 1:21 PM, Kieth Brian Padilla Tomo kbtomo30@aol.com wrote:🌀⚡
⚡az⚡🌀⚡Awesome{}amaZing⚡🌀 http://twitter.com/kbtomo30 http://facebook.com/jesrel.garcia
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Stip Sent: Sunday, May 13, 2012 2:44 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] MediaWiki:Sidebar
In 1.17., the following Code in MediaWiki:Sidebar worked as intended:
{{#ifeq: {{NAMESPACE}} | | *Search for "{{PAGENAME}}" **external link with PAGENAME as parameter | }}
After upgrading to 1.19., it doesnt work anymore. Any advice how to fix it?
Greetings Stip
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org