Difference between revisions of "MediaWiki backup"

From LemonWiki共筆
Jump to navigation Jump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Template:MediaWiki Installation}}
 
{{Template:MediaWiki Installation}}
  
{{Wiki version| wiki_engine=MediaWiki | version=1.21.2 }}
+
{{Wiki version| wiki_engine=MediaWiki | version=1.31.0 }}
Easy backup method: Input the all page name into [[Special:Export]]
+
'''Easy backup method'''
  
* Generate the list of all page name
+
Input the all page name into [[Special:Export]], and export the all content as a XML file. Steps:
: I modified the [http://www.mediawiki.org/wiki/Extension:DynamicWikiSitemap Extension:DynamicWikiSitemap] to [http://wiki.planetoid.info/lists.phps list.php]
+
# Generate the list of all page name:
 +
#* For newer MediaWiki: Use the [https://www.mediawiki.org/wiki/Extension:OneColumnAllPages Extension:OneColumnAllPages - MediaWiki]
 +
#* For MediaWiki 1.21.2: I modified the [http://www.mediawiki.org/wiki/Extension:DynamicWikiSitemap Extension:DynamicWikiSitemap] to [http://wiki.planetoid.info/lists.phps list.php]
 +
# Copy the list of all page name to [[Special:Export]]
 +
# Export the ''latest'' revision of all pages (If you choose to include the all old revisions, it will costs time to export the content.)
  
  
* Copy the list of all page name to [[Special:Export]]
+
'''Other approach: Database backup'''
** Export the ''latest'' revision of all pages (If you choose to include the all old revisions, it will takes time to import the content.)
 
 
 
 
 
'''Other approach'''
 
 
* [http://www.mediawiki.org/wiki/Manual:Moving_a_wiki Manual:Moving a wiki - MediaWiki] / [http://meta.wikimedia.org/wiki/Restore_Database Restore Database]
 
* [http://www.mediawiki.org/wiki/Manual:Moving_a_wiki Manual:Moving a wiki - MediaWiki] / [http://meta.wikimedia.org/wiki/Restore_Database Restore Database]
 +
* [[MySQL_commands#Exporting_data_of_database.2Ftable_into_MySql_sql_file | Exporting data of database/table into MySql sql file]]
  
  
 
similar approach
 
similar approach
 
* [http://www.chieftain.idv.tw/archives/2008/01/25/1337.html Reflection » Blog Archive » Export all the page names on your Mediawiki-powered Wiki]
 
* [http://www.chieftain.idv.tw/archives/2008/01/25/1337.html Reflection » Blog Archive » Export all the page names on your Mediawiki-powered Wiki]
 
+
* [https://errerrors.blogspot.com/2020/03/alternative-approach-to-upgrade-mediawiki.html MediaWiki 替代的升級方式]
  
 
[[Category:MediaWiki]]
 
[[Category:MediaWiki]]

Latest revision as of 12:04, 1 March 2020

Ψ 架設Wiki之前 --> MediaWiki安裝 --> 本地化設置 --> 介面修改 --> 功能擴充 --> 備份與管理 | 工具箱 Ψ

MediaWiki v.1.31.0+


Easy backup method

Input the all page name into Special:Export, and export the all content as a XML file. Steps:

  1. Generate the list of all page name:
  2. Copy the list of all page name to Special:Export
  3. Export the latest revision of all pages (If you choose to include the all old revisions, it will costs time to export the content.)


Other approach: Database backup


similar approach