Backing up and restoring AEN (AEN 4.1.3)
========================================

.. raw:: html

    <div class="section" id="creating-an-aen-backup">
    <h2>Creating an AEN backup<a class="headerlink" href="#creating-an-aen-backup" title="Permalink to this headline">¶</a></h2>
    <ol class="arabic">
    <li><p class="first">Back up and test the AEN database with the mongodump utility:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span>mongodump -o wakari_dump &gt; wakari_backup.log
    tar cvf wakari_backup.tar ./wakari_dump
    </pre></div>
    </div>
    </li>
    <li><p class="first">Back up the project files in <code class="docutils literal"><span class="pre">/projects/\*</span></code>.</p>
    </li>
    <li><p class="first">Back up the configuration files.</p>
    <ul class="simple">
    <li><code class="docutils literal"><span class="pre">/opt/wakari/wakari-server/etc/\*</span></code></li>
    <li><code class="docutils literal"><span class="pre">/opt/wakari/wakari-gateway/etc/\*</span></code></li>
    <li><code class="docutils literal"><span class="pre">/opt/wakari/wakari-compute/etc/\*</span></code></li>
    </ul>
    </li>
    </ol>
    </div>
    <div class="section" id="restoring-an-aen-backup">
    <h2>Restoring an AEN backup<a class="headerlink" href="#restoring-an-aen-backup" title="Permalink to this headline">¶</a></h2>
    <ol class="arabic simple">
    <li>Re-install AEN.</li>
    <li><a class="reference internal" href="manage-services.html#stop-services"><span class="std std-ref">Stop AEN processes</span></a>.</li>
    <li>Restore the database using the mongorestore utility.</li>
    <li>Restore the <code class="docutils literal"><span class="pre">/projects/\*</span></code> backup.</li>
    <li>Verify the permissions of the directories and files in
    <code class="docutils literal"><span class="pre">/projects</span></code>.</li>
    <li>Restore the configuration file backups.</li>
    <li><a class="reference internal" href="manage-services.html#start-services"><span class="std std-ref">Start AEN processes</span></a>.</li>
    </ol>
    </div>
