<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.archivematica.org/index.php?action=history&amp;feed=atom&amp;title=Update_ElasticSearch_snapshots</id>
	<title>Update ElasticSearch snapshots - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.archivematica.org/index.php?action=history&amp;feed=atom&amp;title=Update_ElasticSearch_snapshots"/>
	<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;action=history"/>
	<updated>2026-06-03T07:56:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12906&amp;oldid=prev</id>
		<title>Scollazo: /* ElasticSearch update */</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12906&amp;oldid=prev"/>
		<updated>2019-02-27T14:29:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ElasticSearch update&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:29, 27 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot; &gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         || (echo 'Environment file not found'; exit 1)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         || (echo 'Environment file not found'; exit 1)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   cd /usr/share/archivematica/dashboard&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   cd /usr/share/archivematica/dashboard&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /usr/share/archivematica/virtualenvs/archivematica-dashboard/bin/python manage.py reindex_from_remote_cluster -t 60 -s &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;10 &lt;/del&gt;http://localhost:9500&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /usr/share/archivematica/virtualenvs/archivematica-dashboard/bin/python manage.py reindex_from_remote_cluster -t 60 -s &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1 &lt;/ins&gt;http://localhost:9500&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mwiki_am:diff::1.12:old-12905:rev-12906 --&gt;
&lt;/table&gt;</summary>
		<author><name>Scollazo</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12905&amp;oldid=prev</id>
		<title>Scollazo: /* ElasticSearch update */</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12905&amp;oldid=prev"/>
		<updated>2019-02-27T14:18:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ElasticSearch update&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:18, 27 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l81&quot; &gt;Line 81:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   curl -X &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;PUT &lt;/del&gt;&amp;quot;localhost:9500/_snapshot/backup-repo/am_indexes_backup&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;?&lt;/del&gt;?wait_for_completion=true&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   curl -X &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;POST &lt;/ins&gt;&amp;quot;localhost:9500/_snapshot/backup-repo/am_indexes_backup&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/_restore&lt;/ins&gt;?wait_for_completion=true&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10. Verify that the temporary ElasticSearch service has the same content than the system one:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10. Verify that the temporary ElasticSearch service has the same content than the system one:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   curl -X GET &amp;quot;localhost:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;9200&lt;/del&gt;/_cat/indices?v&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   curl -X GET &amp;quot;localhost:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;9500&lt;/ins&gt;/_cat/indices?v&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   health status index     pri rep docs.count docs.deleted store.size pri.store.size  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   health status index     pri rep docs.count docs.deleted store.size pri.store.size  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   yellow open   aips        5   1      24816            1    175.4mb        175.4mb  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   yellow open   aips        5   1      24816            1    175.4mb        175.4mb  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mwiki_am:diff::1.12:old-12904:rev-12905 --&gt;
&lt;/table&gt;</summary>
		<author><name>Scollazo</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12904&amp;oldid=prev</id>
		<title>Scollazo: /* ElasticSearch update */</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12904&amp;oldid=prev"/>
		<updated>2019-02-27T14:13:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ElasticSearch update&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:13, 27 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    # &lt;/del&gt;Take the actual backup, and copy it to a safe place&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;curl -X PUT &amp;quot;localhost:9200/_snapshot/backup-repo/am_indexes_backup?wait_for_completion=true&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;e. &lt;/ins&gt;Take the actual backup, and copy it to a safe place&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;cp /var/lib/elasticsearch/backup-repo ~/elasticsearch-backup -rf&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;curl -X PUT &amp;quot;localhost:9200/_snapshot/backup-repo/am_indexes_backup?wait_for_completion=true&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;cp /var/lib/elasticsearch/backup-repo ~/elasticsearch-backup -rf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mwiki_am:diff::1.12:old-12903:rev-12904 --&gt;
&lt;/table&gt;</summary>
		<author><name>Scollazo</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12903&amp;oldid=prev</id>
		<title>Scollazo: /* ElasticSearch update */</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12903&amp;oldid=prev"/>
		<updated>2019-02-27T14:11:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ElasticSearch update&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:11, 27 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   yellow open   transfers   5   1          0            0       720b           720b  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   yellow open   transfers   5   1          0            0       720b           720b  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Create an ElasticSearch &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;snapshot &lt;/del&gt;using the following commands:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Create an ElasticSearch &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;backup (they are called snapshots ) &lt;/ins&gt;using the following commands:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;a. Remove and recreate the folder that stores the backup&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;a. Remove and recreate the folder that stores the backup&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mwiki_am:diff::1.12:old-12902:rev-12903 --&gt;
&lt;/table&gt;</summary>
		<author><name>Scollazo</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12902&amp;oldid=prev</id>
		<title>Scollazo: Created page with &quot;= ElasticSearch update =  1. Check that ES is up and running, and note the results:    curl -X GET &quot;localhost:9200/_cat/indices?v&quot;   health status index     pri rep docs.count...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Update_ElasticSearch_snapshots&amp;diff=12902&amp;oldid=prev"/>
		<updated>2019-02-27T14:10:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= ElasticSearch update =  1. Check that ES is up and running, and note the results:    curl -X GET &amp;quot;localhost:9200/_cat/indices?v&amp;quot;   health status index     pri rep docs.count...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= ElasticSearch update =&lt;br /&gt;
&lt;br /&gt;
1. Check that ES is up and running, and note the results:&lt;br /&gt;
&lt;br /&gt;
  curl -X GET &amp;quot;localhost:9200/_cat/indices?v&amp;quot;&lt;br /&gt;
  health status index     pri rep docs.count docs.deleted store.size pri.store.size &lt;br /&gt;
  yellow open   aips        5   1      24816            1    175.4mb        175.4mb &lt;br /&gt;
  yellow open   transfers   5   1          0            0       720b           720b &lt;br /&gt;
&lt;br /&gt;
2. Create an ElasticSearch snapshot using the following commands:&lt;br /&gt;
&lt;br /&gt;
a. Remove and recreate the folder that stores the backup&lt;br /&gt;
&lt;br /&gt;
  sudo rm -rf /var/lib/elasticsearch/backup-repo/&lt;br /&gt;
  sudo mkdir -p /var/lib/elasticsearch/backup-repo/&lt;br /&gt;
  sudo chown elasticsearch:elasticsearch /var/lib/elasticsearch/backup-repo/&lt;br /&gt;
&lt;br /&gt;
b. Allow elasticsearch to write files to the backup&lt;br /&gt;
&lt;br /&gt;
  echo 'path.repo: [&amp;quot;/var/lib/elasticsearch/backup-repo&amp;quot;]' |sudo tee -a /etc/elasticsearch/elasticsearch.yml&lt;br /&gt;
&lt;br /&gt;
c. Restart ElasticSearch and wait for it to start&lt;br /&gt;
&lt;br /&gt;
  sudo service elasticsearch restart&lt;br /&gt;
  sleep 60s&lt;br /&gt;
&lt;br /&gt;
d. Configure the ES backup&lt;br /&gt;
  curl -XPUT &amp;quot;localhost:9200/_snapshot/backup-repo&amp;quot; -H 'Content-Type: application/json' -d \&lt;br /&gt;
    '{&lt;br /&gt;
         &amp;quot;type&amp;quot;: &amp;quot;fs&amp;quot;,&lt;br /&gt;
         &amp;quot;settings&amp;quot;: {&lt;br /&gt;
         &amp;quot;location&amp;quot;: &amp;quot;./&amp;quot;,&lt;br /&gt;
         &amp;quot;compress&amp;quot;: true&lt;br /&gt;
         }&lt;br /&gt;
     }'&lt;br /&gt;
    # Take the actual backup, and copy it to a safe place&lt;br /&gt;
    curl -X PUT &amp;quot;localhost:9200/_snapshot/backup-repo/am_indexes_backup?wait_for_completion=true&amp;quot;&lt;br /&gt;
    cp /var/lib/elasticsearch/backup-repo ~/elasticsearch-backup -rf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Check wich elasticsearch version is installed&lt;br /&gt;
&lt;br /&gt;
  Redhat/Centos: rpm -qa | grep elasticsearch&lt;br /&gt;
  Ubuntu: dpkg -l | grep elasticsearch&lt;br /&gt;
&lt;br /&gt;
4. Download a temporary copy of elasticsearch (same version than intalled)&lt;br /&gt;
&lt;br /&gt;
  wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.6.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Uncompress the downloaded tar.gz and go into it&lt;br /&gt;
&lt;br /&gt;
  tar zxvf elasticsearch-1.7.5.tar.gz&lt;br /&gt;
  cd elasticsearch-1.7.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Copy the backup you just created &lt;br /&gt;
   &lt;br /&gt;
  mkdir -p data&lt;br /&gt;
  cp /var/lib/elasticsearch/backup-repo data -rf # Use sudo if needed&lt;br /&gt;
&lt;br /&gt;
7. Adjust file permissions&lt;br /&gt;
&lt;br /&gt;
  sudo chown &amp;lt;your user&amp;gt;:&amp;lt;your group&amp;gt; data -R&lt;br /&gt;
&lt;br /&gt;
8. Open other shell, and launch the temporary elasticsearch instance&lt;br /&gt;
&lt;br /&gt;
  cd elasticsearch-1.7.5&lt;br /&gt;
  ES_JAVA_OPTS=&amp;quot;-Xms2g -Xmx2g&amp;quot; ./bin/elasticsearch -p elastic-tmp.pid -Des.http.port=9500 -Des.path.repo=data/backup-repo&lt;br /&gt;
&lt;br /&gt;
9. Tell the temporary ElasticSearch instance about the backup files, and restore them:&lt;br /&gt;
&lt;br /&gt;
  curl -XPUT &amp;quot;localhost:9500/_snapshot/backup-repo&amp;quot; -H 'Content-Type: application/json' -d \&lt;br /&gt;
 '{&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;fs&amp;quot;,&lt;br /&gt;
    &amp;quot;settings&amp;quot;: {&lt;br /&gt;
    &amp;quot;location&amp;quot;: &amp;quot;./&amp;quot;,&lt;br /&gt;
     &amp;quot;compress&amp;quot;: true&lt;br /&gt;
     }&lt;br /&gt;
  }'&lt;br /&gt;
  curl -X PUT &amp;quot;localhost:9500/_snapshot/backup-repo/am_indexes_backup??wait_for_completion=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
10. Verify that the temporary ElasticSearch service has the same content than the system one:&lt;br /&gt;
&lt;br /&gt;
  curl -X GET &amp;quot;localhost:9200/_cat/indices?v&amp;quot;&lt;br /&gt;
  health status index     pri rep docs.count docs.deleted store.size pri.store.size &lt;br /&gt;
  yellow open   aips        5   1      24816            1    175.4mb        175.4mb &lt;br /&gt;
  yellow open   transfers   5   1          0            0       720b           720b &lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
11. Remove system's ElasticSearch 1.7.5 and it's files&lt;br /&gt;
&lt;br /&gt;
  Redhat: sudo yum remove elasticsearch&lt;br /&gt;
  Ubuntu: sudo apt-get remove --purge elasticsearch&lt;br /&gt;
  sudo mv /var/lib/elasticsearch /var/lib/elasticsearch-1.7.5&lt;br /&gt;
  sudo mv /etc/elasticsearch /etc/elasticsearch-1.7.5&lt;br /&gt;
&lt;br /&gt;
12. Upgrade archivematica and install elasticsearch 6&lt;br /&gt;
&lt;br /&gt;
  ansible-playbook -i hosts singlenode.yml --tags=elasticsearch,archivematica-src&lt;br /&gt;
&lt;br /&gt;
13. Configure ElasticSearch 6 to handle reindex from the temporary es &lt;br /&gt;
&lt;br /&gt;
  echo 'reindex.remote.whitelist: localhost:9500' | sudo tee -a /etc/elasticsearch/elasticsearch.yml&lt;br /&gt;
  sudo service elasticsearch restart&lt;br /&gt;
&lt;br /&gt;
14. Migrate the indexes&lt;br /&gt;
&lt;br /&gt;
  sudo -u archivematica bash -c &amp;quot; \&lt;br /&gt;
  set -a -e -x&lt;br /&gt;
  source /etc/default/archivematica-dashboard || \&lt;br /&gt;
  source /etc/sysconfig/archivematica-dashboard \&lt;br /&gt;
        || (echo 'Environment file not found'; exit 1)&lt;br /&gt;
  cd /usr/share/archivematica/dashboard&lt;br /&gt;
  /usr/share/archivematica/virtualenvs/archivematica-dashboard/bin/python manage.py reindex_from_remote_cluster -t 60 -s 10 http://localhost:9500&lt;br /&gt;
  &amp;quot;;&lt;br /&gt;
&lt;br /&gt;
The command should finish with&lt;br /&gt;
  &lt;br /&gt;
  All reindex requests ended successfully!&lt;br /&gt;
&lt;br /&gt;
Else, you might need to tweak the timeout (-t) and size (-s) parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15. Verify that the new indexes were created and populated:&lt;br /&gt;
&lt;br /&gt;
  curl -X GET &amp;quot;localhost:9200/_cat/indices?v&amp;quot; &lt;br /&gt;
  health status index         uuid                   pri rep docs.count docs.deleted store.size pri.store.size&lt;br /&gt;
  yellow open   transferfiles jlu2d2yZQpWwpKKT1ZzMAA   5   1          0            0      1.1kb          1.1kb&lt;br /&gt;
  yellow open   aips          VAvONAByRBuVcWBYhlhUmw   5   1        116            0     66.9mb         66.9mb&lt;br /&gt;
  yellow open   transfers     OhfLVBzuRqCNUYRCSSTidg   5   1          0            0      1.1kb          1.1kb&lt;br /&gt;
  yellow open   aipfiles      clX1gcqnT9CTdwTm8jeatw   5   1      24700            0     70.6mb         70.6mb&lt;br /&gt;
&lt;br /&gt;
You should have 4 indexes now, and the sum of the aips and aipfiles docs.count column should be equal to the doc.count for the aip index in ElasticSearch 1.7.5. The same happens with the transfers/transferfiles indexes.&lt;br /&gt;
&lt;br /&gt;
16. Stop the temporary elasticsearch service&lt;br /&gt;
&lt;br /&gt;
  kill $(cat ~/elasticsearch-1.7.5/elastic-tmp.pid)&lt;br /&gt;
&lt;br /&gt;
17. Restart all archivematica services&lt;br /&gt;
  &lt;br /&gt;
  service archivematica-dashboard restart&lt;br /&gt;
  service archivematica-mcp-server restart&lt;br /&gt;
  service archivematica-mcp-client restart&lt;br /&gt;
  service archivematica-storage-service restart&lt;/div&gt;</summary>
		<author><name>Scollazo</name></author>
	</entry>
</feed>