<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.openwetware.org/skins/common/feed.css?164"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>User:Austin J. Che/Extensions/dumpRewrite - Revision history</title>
		<link>http://www.openwetware.org/index.php?title=User:Austin_J._Che/Extensions/dumpRewrite&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.13.2</generator>
		<lastBuildDate>Tue, 21 May 2013 03:42:20 GMT</lastBuildDate>
		<item>
			<title>Austin J. Che: /* Bugs/Enhancements */</title>
			<link>http://www.openwetware.org/index.php?title=User:Austin_J._Che/Extensions/dumpRewrite&amp;diff=119519&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Bugs/Enhancements&lt;/span&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:27, 31 May 2007&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Bugs/Enhancements==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Bugs/Enhancements==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* The images could be handled better. There could be name conflicts leading to incorrect pictures showing. Rewriting image names isn't the easiest thing as their location would change.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* The images could be handled better. There could be name conflicts leading to incorrect pictures showing. Rewriting image names isn't the easiest thing as their location would change.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* Usernames are not mapped (User: pages can be mapped but that isn't equivalent to the mediawiki notion of a user).&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Send bugs and comments to [[Austin Che]]. Other extensions including&amp;nbsp; sources can be found at [[../]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Send bugs and comments to [[Austin Che]]. Other extensions including&amp;nbsp; sources can be found at [[../]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-21 03:42:20 --&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 31 May 2007 19:27:16 GMT</pubDate>			<dc:creator>Austin J. Che</dc:creator>			<comments>http://www.openwetware.org/wiki/User_talk:Austin_J._Che/Extensions/dumpRewrite</comments>		</item>
		<item>
			<title>Austin: User:Austin/Extensions/dumpRewrite moved to User:Austin J. Che/Extensions/dumpRewrite: Automatically moved page while renaming the user &quot;Austin&quot; to &quot;Austin J. Che&quot;</title>
			<link>http://www.openwetware.org/index.php?title=User:Austin_J._Che/Extensions/dumpRewrite&amp;diff=116568&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;a href=&quot;/wiki/User:Austin/Extensions/dumpRewrite&quot; title=&quot;User:Austin/Extensions/dumpRewrite&quot;&gt;User:Austin/Extensions/dumpRewrite&lt;/a&gt; moved to &lt;a href=&quot;/wiki/User:Austin_J._Che/Extensions/dumpRewrite&quot; title=&quot;User:Austin J. Che/Extensions/dumpRewrite&quot;&gt;User:Austin J. Che/Extensions/dumpRewrite&lt;/a&gt;: Automatically moved page while renaming the user &amp;quot;&lt;a href=&quot;/wiki/User:Austin&quot; title=&quot;User:Austin&quot;&gt;Austin&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/wiki/User:Austin_J._Che&quot; title=&quot;User:Austin J. Che&quot;&gt;Austin J. Che&lt;/a&gt;&amp;quot;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:49, 14 May 2007&lt;/td&gt;
			&lt;/tr&gt;
		&lt;!-- diff generator: internal 2013-05-21 03:42:20 --&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 14 May 2007 22:49:28 GMT</pubDate>			<dc:creator>Austin</dc:creator>			<comments>http://www.openwetware.org/wiki/User_talk:Austin_J._Che/Extensions/dumpRewrite</comments>		</item>
		<item>
			<title>Austin J. Che at 02:48, 13 April 2006</title>
			<link>http://www.openwetware.org/index.php?title=User:Austin_J._Che/Extensions/dumpRewrite&amp;diff=33509&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==dumpRewrite==&lt;br /&gt;
&lt;br /&gt;
This is a script like the other mediawiki maintenance scripts. It was written to allow the importing of another mediawiki into OpenWetWare. Although it has currently only been tested on one wiki, it should be general enough to extract any portion of one wiki, rewrite it using regular expression rules, and import those pages into another wiki. For example, it can be used to dump an entire wiki, prefix all page titles with Foo/Bar and also rewrite all links such that they point to the correct page name. The rewriting code currently relies on the subpage feature of MediaWiki to work correctly.&lt;br /&gt;
&lt;br /&gt;
This is only a skeleton of what you have to do because if you want to use this, you have to really understand what you're doing anyway. Please contact me if you are interested in importing into OpenWetWare another wiki that you have file access to (you have to have shell access to the actual wiki files). &lt;br /&gt;
&lt;br /&gt;
The steps to merge a ''source'' wiki (e.g. your wiki) into a ''destination'' wiki (e.g. OWW):&lt;br /&gt;
# Upgrade if necessary the source wiki to at least mediawiki 1.5 and preferably the same [[Special:Version|version]] as running on the destination wiki&lt;br /&gt;
# Images aren't currently handled too elegantly. I simply merge the images directory giving preference for existing images by running &amp;lt;tt&amp;gt;yes n | cp -r src-wiki/images/* dest-wiki/images&amp;lt;/tt&amp;gt;&lt;br /&gt;
# After the above copy, the permissions should be set correctly to match those of other files so the web server can access them correctly&lt;br /&gt;
# Run &amp;lt;tt&amp;gt;php rebuildImages.php --missing&amp;lt;/tt&amp;gt; in the maintainence directory of the ''destination'' wiki. This lets mediawiki know about the new images.&lt;br /&gt;
# In the source wiki, run &amp;lt;tt&amp;gt;php dumpRewrite.php dump.conf &amp;gt; file.xml&amp;lt;/tt&amp;gt; to dump the source wiki using the rules in dump.conf. See the example file for the format of this file or read dumpRewrite.php&lt;br /&gt;
# In the destination wiki ('''don't do this in the source wiki'''), run &amp;lt;tt&amp;gt;php importDump &amp;lt; file.xml&amp;lt;/tt&amp;gt; to import the source wiki&lt;br /&gt;
&lt;br /&gt;
''You should always test this process on a non-live wiki.'' I have not found an easy way to revert the import so test it on a copy of the wiki.&lt;br /&gt;
&lt;br /&gt;
==Bugs/Enhancements==&lt;br /&gt;
* The images could be handled better. There could be name conflicts leading to incorrect pictures showing. Rewriting image names isn't the easiest thing as their location would change.&lt;br /&gt;
* Usernames are not mapped (User: pages can be mapped but that isn't equivalent to the mediawiki notion of a user).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Send bugs and comments to [[Austin Che]]. Other extensions including  sources can be found at [[../]].&lt;/div&gt;</description>
			<pubDate>Thu, 13 Apr 2006 02:48:53 GMT</pubDate>			<dc:creator>Austin J. Che</dc:creator>			<comments>http://www.openwetware.org/wiki/User_talk:Austin_J._Che/Extensions/dumpRewrite</comments>		</item>
	</channel>
</rss>
