<?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=Search_and_replace_tool</id>
	<title>Search and replace tool - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Search_and_replace_tool"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Search_and_replace_tool&amp;action=history"/>
	<updated>2026-05-06T16:36:20Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Search_and_replace_tool&amp;diff=5325&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Search_and_replace_tool&amp;diff=5325&amp;oldid=prev"/>
		<updated>2024-10-18T06:44:54Z</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:44, 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=Search_and_replace_tool&amp;diff=5324&amp;oldid=prev</id>
		<title>1&gt;Michael-milette: Added an example of using the CLI as there was no indication of syntax or path on this page.</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Search_and_replace_tool&amp;diff=5324&amp;oldid=prev"/>
		<updated>2024-03-06T11:57:15Z</updated>

		<summary type="html">&lt;p&gt;Added an example of using the CLI as there was no indication of syntax or path on this page.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Admin tools}}&lt;br /&gt;
Admins can search and replace text e.g. URLs in their Moodle database using the search and replace tool at &amp;lt;nowiki&amp;gt;http://yourmoodlesite.org/admin/tool/replace/index.php&amp;lt;/nowiki&amp;gt; (replacing yourmoodlesite.org with the address of your Moodle site). This is useful when a [[Moodle migration|Moodle site is moved from one server to another]] or when the URL changes.&lt;br /&gt;
&lt;br /&gt;
Alternatively, a command line script can be used to search and replace text. See [[Administration via command line]] for details.&lt;br /&gt;
&lt;br /&gt;
{{Warning|A database and site backup should be created before performing a search and replace.}}&lt;br /&gt;
&lt;br /&gt;
==CLI Parameters==&lt;br /&gt;
The following parameters can be utilized with the Search and Replace cli sript.&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
--search=STRING       String to search for.&lt;br /&gt;
&lt;br /&gt;
--replace=STRING      String to replace with.&lt;br /&gt;
&lt;br /&gt;
--shorten             Shorten result if necessary.&lt;br /&gt;
&lt;br /&gt;
--non-interactive     Perform the replacement without confirming.&lt;br /&gt;
&lt;br /&gt;
-h, --help            Print out this help.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 cd /path/to/your/moodle/dir&lt;br /&gt;
 php admin/tool/replace/cli/replace.php --search=//oldsitehost --replace=//newsitehost --shorten --non-interactive&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Tracker issue MDL-35099 Convert hidden search/replace script into a proper core admin tool&lt;br /&gt;
&lt;br /&gt;
[[es:Herramienta para buscar y remplazar]]&lt;br /&gt;
[[fr: Recherche et remplacement]]&lt;br /&gt;
[[de:Datenbank-Suche]]&lt;/div&gt;</summary>
		<author><name>1&gt;Michael-milette</name></author>
	</entry>
</feed>