“备份Wiki”版本间的差异

来自iCenter Wiki
跳转至: 导航搜索
(Created page with "在'''LocalSettings.php'''中添加 $wgReadOnly = 'Dumping Database, Access will be restored shortly'; 然后运行 mysqldump -h hostname -u userid -p --default-character-set=...")
 
第1行: 第1行:
 
在'''LocalSettings.php'''中添加
 
在'''LocalSettings.php'''中添加
 +
 
$wgReadOnly = 'Dumping Database, Access will be restored shortly';
 
$wgReadOnly = 'Dumping Database, Access will be restored shortly';
 +
 
然后运行
 
然后运行
 +
 
mysqldump -h hostname -u userid -p --default-character-set=whatever toyhouse_wiki > backup.sql
 
mysqldump -h hostname -u userid -p --default-character-set=whatever toyhouse_wiki > backup.sql
 +
 
接着进入网站的maintenance目录,然后运行
 
接着进入网站的maintenance目录,然后运行
 +
 
php dumpBackup.php --full > dump.xml
 
php dumpBackup.php --full > dump.xml
  
 
--[[User:Tonyxue|Tonyxue]] ([[User talk:Tonyxue|talk]]) 10:32, 10 August 2015 (CST)
 
--[[User:Tonyxue|Tonyxue]] ([[User talk:Tonyxue|talk]]) 10:32, 10 August 2015 (CST)

2015年8月10日 (一) 04:32的版本

LocalSettings.php中添加

$wgReadOnly = 'Dumping Database, Access will be restored shortly';

然后运行

mysqldump -h hostname -u userid -p --default-character-set=whatever toyhouse_wiki > backup.sql

接着进入网站的maintenance目录,然后运行

php dumpBackup.php --full > dump.xml

--Tonyxue (talk) 10:32, 10 August 2015 (CST)