Mediawiki 导出导入
728x15 ad here
出自Guoshuang Wiki
- http://en.wikipedia.org/wiki/Help:Export
- http://jrandomhacker.info/MediaWiki_tricks_and_tips
- http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki#XML_dump
- http://wiki.fishcakesmedia.com/Installing_MediaWiki#XML_Backup_using_dumpBackup
MySQL Backup using mysqlDump
To do a full backup of the database, use the mysqldump function:
1. Run the command:
mysqldump -u <user name> <database> -p >> <output file>
XML Backup using dumpBackup
To do a partial backup of just your content. /maintenance/dumpBackup.php script:
1. Ensure that the file AdminSettings.php has been created and has the correct database user settings. 2. Login to your web host using PuTTY or similar command line tool. 3. Run the command:
cd /yourwiki/maintenance
4. Run the command:
php dumpBackup.php --full > /yourwikidata.xml
You can get a full listing of options with:
php dumpBackup.php
5. Copy the backup file to your local hard drive or to a backup archive on your server.
