.. _database-move: Database Management ------------------- Move to a different database or engine ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Use cases: * move to a different database storage (e.g. provided by a different database host) * change the database engine (e.g. from SQLite to PostgreSQL) * migrate the data to a different host with a different database engine Procedure: #. stop the running grouprise service (e.g. :code:`service grouprise stop`) #. dump the current database content in a database-neutral format: .. code-block:: shell grouprisectl dumpdata \ --natural-primary \ --natural-foreign \ --exclude sessions \ --exclude admin.logentry \ --indent 4 \ --all \ >grouprise-export.json #. prepare the new desired configuration (below :code:`/etc/grouprise/conf.d/`) #. create new database (see :ref:`database-initialization`) #. populate the database structure: :code:`grouprisectl migrate` #. load the export data: :code:`grouprisectl loaddata --format=json -