从 特殊:导出页面 导出
You can export your wiki using Special:Export. That page is self-explanatory, just make sure to uncheck "Include only the current revision, not the full history" because of the legal concerns outlined above. If this fails, you'll have to use the method below.
Exporting via maintenance scripts
If you have access to the server where MediaWiki is installed, issue dumpBackup.php in the wiki.
- None of the methods here export image files. You will have to copy the files and give them to the Miraheze system administrators for processing (via a Phabricator ticket).
- Alternatively, you can use Wikiteam's wiki archiving tool to make a XML dump and download all available images at the same time. We can't guarantee it will work on all wikis, nor we will run it for you. You'll have to run it on your own and prepare the data.
- These tools cannot populate the user database. Even if you have a database dump with the user data to import, we cannot handle their user information unless you have every users' consent to transfer the user data to us.
- As always, any data transferred must have the proper copyright, and you must a license or ownership that allows you to host the content at Miraheze (e.g. Creative Commons). If you need to change the license of the wiki as a whole from CC-SA to some other license, please note this in your upload request.
Importing a wiki
Do it yourself
If your dump is really small (less than few KBs), you can try Special:Import on your wiki. (Don't try this command in Meta! Well... you can't do it, unless you have local sysop. Still, don't do it, unless you have compelling reason.) Images cannot be uploaded with the MediaWiki interface. Please see below section.
If your file is big enough that MediaWiki fails to process in due time, it has to be processed by Miraheze system administrators. Please request import using this form (Phabricator account required), and send your actual XML dump (with a link to phabricator task) to techmiraheze.org. Image import should also follow this way, too.
You should avoid creating a new page that is also in your old wiki. That will cause a conflict, and will most likely result in unpleasant situations.
Please note that we will disable any editing (including account creation) on the wiki during the import process: Your wiki users will need to create an account on Meta (this wiki!) and use that username and password to log in on the wiki until the import is complete.