Name

dhis2-restoredb — Restore a database dump to a dhis2 instance.

Synopsis

/usr/bin/dhis2-restoredb { instance name } { db dumps }

Description

Use this tool to restore a database.

Shuts down the specified dhis2 instance and takes a snapshot backup of the current database. It then drops the current database and creates a new blank one. The new database is then populated with the specified db dump.

Examples

dhis2-restoredb myInstance db.sql

Restores the db.sql dump to the myInstance database