Mediawiki 导出导入

728x15 ad here

出自Guoshuang Wiki

跳转到: 导航, 搜索

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.

个人工具
125x125 ad here
Advertisement
120x600 ad here