<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Site_restore</id>
	<title>Site restore - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Site_restore"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Site_restore&amp;action=history"/>
	<updated>2026-05-06T18:51:56Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Site_restore&amp;diff=5479&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Site_restore&amp;diff=5479&amp;oldid=prev"/>
		<updated>2024-10-18T06:45:41Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:45, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Site_restore&amp;diff=5478&amp;oldid=prev</id>
		<title>1&gt;Leonstr: /* Change site identifier */ Reworded to make it clearer a new siteidentifier is only needed for site copies.</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Site_restore&amp;diff=5478&amp;oldid=prev"/>
		<updated>2024-09-06T13:27:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Change site identifier: &lt;/span&gt; Reworded to make it clearer a new siteidentifier is only needed for site copies.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
If you have followed the [[Site backup]] instructions and created a backup of a Moodle site, you may need to know how to restore the site backup you created. &lt;br /&gt;
&lt;br /&gt;
There are 3 areas that could be restored individually or together:&lt;br /&gt;
*Moodle code &lt;br /&gt;
*Moodle uploaded or created files&lt;br /&gt;
*Moodle database - MySQL, Progres or other&lt;br /&gt;
&lt;br /&gt;
The location and names of these areas can be found in the [[Configuration file]].&lt;br /&gt;
&lt;br /&gt;
==Command line (linux) restore==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a set of basic steps that make up the restore process.&lt;br /&gt;
&lt;br /&gt;
1. Rename the original Moodle directory to something different (so you still have it) and copy the backed up Moodle directory or a newly downloaded Moodle directory in its place.&lt;br /&gt;
&lt;br /&gt;
2. If you are running MySQL, a backup of the database should be a .sql, .gz or .tar.gz file.  If it is .tar.gz or .gz you need to extract it until it is an sql file.&lt;br /&gt;
&lt;br /&gt;
 tar -xzvf moodlesqlfile.tar.gz&lt;br /&gt;
&lt;br /&gt;
3. If you are running mysql, import the SQL file back into a newly created database on the MySQL server.  Be careful here, some backups try to import right back into the same working database that Moodle is connected to.  This causes database problems that damage a Moodle installation.  The best thing to do is make a new database, restore the backed up database into it, and change the Moodle &amp;#039;&amp;#039;&amp;#039;config.php&amp;#039;&amp;#039;&amp;#039; file to connect to this new database (this way you still have the original database).&lt;br /&gt;
&lt;br /&gt;
Once you have created the new database:&lt;br /&gt;
&lt;br /&gt;
 mysql -p new_database &amp;lt; moodlesqlfile.sql&lt;br /&gt;
&lt;br /&gt;
For other databases, follow their instructions for restoring a backup.&lt;br /&gt;
&lt;br /&gt;
==Tools for site backup and restore==&lt;br /&gt;
*phpMyAdmin&lt;br /&gt;
*MySQLdump&lt;br /&gt;
Tools for backing up data files&lt;br /&gt;
&lt;br /&gt;
===Restore with phpMyAdmin===&lt;br /&gt;
Restoring a backup of a MySql database&lt;br /&gt;
# Open the database to restore&lt;br /&gt;
# Click the SQL tab.&lt;br /&gt;
# On the &amp;quot;SQL&amp;quot;-page, unclick the show query here again.&lt;br /&gt;
# Browse to your backup of the database.&lt;br /&gt;
# Click Go.&lt;br /&gt;
&lt;br /&gt;
== Change site identifier ==&lt;br /&gt;
If this a clone of the original site – for example, a test copy of a live site – generate a new identifier for the new site after restoring:&lt;br /&gt;
&lt;br /&gt;
# Delete the &amp;#039;siteidentifier&amp;#039; record in &amp;lt;code&amp;gt;mdl_config&amp;lt;/code&amp;gt;, for example, using &amp;lt;code&amp;gt;DELETE FROM mdl_config WHERE name = &amp;#039;siteidentifier&amp;#039;&amp;lt;/code&amp;gt;. Change &amp;#039;mdl_&amp;#039; if the site has a different &amp;lt;code&amp;gt;$CFG-&amp;gt;prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
# [[Developer_tools#Purge_all_caches|Purge all caches]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This prevents problems mapping users when restoring course backups from the original site.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Site backup]]&lt;br /&gt;
* [[Site restore for low-tech users]]&lt;br /&gt;
* [[Backup and restore FAQ]]&lt;br /&gt;
* [[Course restore]]&lt;br /&gt;
&lt;br /&gt;
[[es:Restauración del sitio]]&lt;br /&gt;
[[de:Wiederherstellung der Moodle-Site]]&lt;/div&gt;</summary>
		<author><name>1&gt;Leonstr</name></author>
	</entry>
</feed>