<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mailnest.com/dbawiki/index.php?action=history&amp;feed=atom&amp;title=Mediawiki_backup_and_restore</id>
		<title>Mediawiki backup and restore - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://mailnest.com/dbawiki/index.php?action=history&amp;feed=atom&amp;title=Mediawiki_backup_and_restore"/>
		<link rel="alternate" type="text/html" href="https://mailnest.com/dbawiki/index.php?title=Mediawiki_backup_and_restore&amp;action=history"/>
		<updated>2026-04-06T22:08:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.3</generator>

	<entry>
		<id>https://mailnest.com/dbawiki/index.php?title=Mediawiki_backup_and_restore&amp;diff=285&amp;oldid=prev</id>
		<title>Stuart: Created page with &quot;A couple of things: wikidb.servername.$DAY is just a gzipped mysql dump of the database. wikifiles.$DAY.tbz is simply a tar of the entire directory structure. I have a cron jo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mailnest.com/dbawiki/index.php?title=Mediawiki_backup_and_restore&amp;diff=285&amp;oldid=prev"/>
				<updated>2012-12-26T23:36:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;A couple of things: wikidb.servername.$DAY is just a gzipped mysql dump of the database. wikifiles.$DAY.tbz is simply a tar of the entire directory structure. I have a cron jo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A couple of things: wikidb.servername.$DAY is just a gzipped mysql dump of&lt;br /&gt;
the database. wikifiles.$DAY.tbz is simply a tar of the entire directory&lt;br /&gt;
structure. I have a cron job run daily to backup both.&lt;br /&gt;
&lt;br /&gt;
Create Database&lt;br /&gt;
Mysql –u root –p&lt;br /&gt;
Create database wikidb;&lt;br /&gt;
Exit&lt;br /&gt;
Restore Database files&lt;br /&gt;
Cd /&amp;lt;backup location&amp;gt;&lt;br /&gt;
Gunzip wikidb.servername.$DAY.gz&lt;br /&gt;
Mysql –u root –p wikidb &amp;lt; wikidb.servername.$DAY&lt;br /&gt;
&lt;br /&gt;
Ensure database restored&lt;br /&gt;
mysql -u root -p wikidb&lt;br /&gt;
show tables;&lt;br /&gt;
&amp;lt;list of tables (about 35 should appear).&lt;br /&gt;
&lt;br /&gt;
Create Wiki User account in MYSQL&lt;br /&gt;
Mysql –u root -p&lt;br /&gt;
create user &amp;#039;wikiuser&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;password to be used:&lt;br /&gt;
IMPORTANT make sure this is also the same as in the LocalSettings.php&lt;br /&gt;
file!&amp;#039;;&lt;br /&gt;
Grant privileges to wikiuser on wikidb database&lt;br /&gt;
Mysql –u root –p&lt;br /&gt;
GRANT ALL ON wikidb.* TO wikiuser at localhost IDENTIFIED BY &amp;#039;password to be&lt;br /&gt;
used&amp;#039;;&lt;br /&gt;
Flush privileges;&lt;br /&gt;
&lt;br /&gt;
Restore wiki config files and images&lt;br /&gt;
Cd /&lt;br /&gt;
Tar –xvjf /&amp;lt;backup location&amp;gt;/wikifiles.$DAY.tbz&lt;br /&gt;
Complete restore process complete – to make sure, perform test plan again&lt;br /&gt;
&lt;br /&gt;
Potential things that ** may ** be required are:&lt;br /&gt;
/&amp;lt;wiki install&amp;gt;/maintenance/php5 rebuildall.php&lt;br /&gt;
Double double check the correct database, username, password are used in the&lt;br /&gt;
/&amp;lt;wiki install&amp;gt;/LocalSettings.php file&lt;br /&gt;
Make sure apache is set up correctly, and the wiki location set&lt;br /&gt;
appropriately in the LocalSettings.php file&lt;/div&gt;</summary>
		<author><name>Stuart</name></author>	</entry>

	</feed>