Backup/Restore
==============

Backup
------

Backup the following Anaconda Enterprise Notebooks files and directories using your
standard backup procedures.

-  Backup the Anaconda Enterprise Notebooks **database** with the mongodump utility

   ::

       mongodump -o wakari_dump > wakari_backup.log
       tar cvf wakari_backup.tar ./wakari_dump

-  Backup the **project files** in /projects/\*

-  Backup the **config files**

   -  The location of the config files depends on where Anaconda Enterprise Notebooks was
      installed on the system. The default locations are

      -  /opt/wakari/wakari-server/etc/\*
      -  /opt/wakari/wakari-gateway/etc/\*
      -  /opt/wakari/wakari-compute/etc/\*

Restore
-------

-  Re-install Anaconda Enterprise Notebooks
-  Shutdown Anaconda Enterprise Notebooks processes - See the Startup and Shutdown section.
-  Restore the Database using the mongorestore utility
-  Restore the /projects/\* backup
-  Verify the permissions of the directories and files in /projects.
-  Restore the config file backups.
-  Start Anaconda Enterprise Notebooks - See the Startup and Shutdown section.
