Backup/Restore (AEN 4.1.1)
==========================

.. raw:: html

    <div class="section" id="backup">
    <h2>Backup<a class="headerlink" href="#backup" title="Permalink to this headline">¶</a></h2>
    <p>Backup the following Anaconda Enterprise Notebooks files and directories using your
    standard backup procedures.</p>
    <ul>
    <li><p class="first">Backup the Anaconda Enterprise Notebooks <strong>database</strong> with the mongodump utility</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">mongodump</span> <span class="o">-</span><span class="n">o</span> <span class="n">wakari_dump</span> <span class="o">&gt;</span> <span class="n">wakari_backup</span><span class="o">.</span><span class="n">log</span>
    <span class="n">tar</span> <span class="n">cvf</span> <span class="n">wakari_backup</span><span class="o">.</span><span class="n">tar</span> <span class="o">./</span><span class="n">wakari_dump</span>
    </pre></div>
    </div>
    </li>
    <li><p class="first">Backup the <strong>project files</strong> in /projects/*</p>
    </li>
    <li><p class="first">Backup the <strong>config files</strong></p>
    <ul class="simple">
    <li>The location of the config files depends on where Anaconda Enterprise Notebooks was
    installed on the system. The default locations are<ul>
    <li>/opt/wakari/wakari-server/etc/*</li>
    <li>/opt/wakari/wakari-gateway/etc/*</li>
    <li>/opt/wakari/wakari-compute/etc/*</li>
    </ul>
    </li>
    </ul>
    </li>
    </ul>
    </div>
    <div class="section" id="restore">
    <h2>Restore<a class="headerlink" href="#restore" title="Permalink to this headline">¶</a></h2>
    <ul class="simple">
    <li>Re-install Anaconda Enterprise Notebooks</li>
    <li>Shutdown Anaconda Enterprise Notebooks processes - See the Startup and Shutdown section.</li>
    <li>Restore the Database using the mongorestore utility</li>
    <li>Restore the /projects/* backup</li>
    <li>Verify the permissions of the directories and files in /projects.</li>
    <li>Restore the config file backups.</li>
    <li>Start Anaconda Enterprise Notebooks - See the Starup and Shutdown section.</li>
    </ul>
    </div>
