.. _Backing Up and Restoring Management Database: Backing Up and Restoring Management Database -------------------------------------------- |product_name| stores node information, statistics, and configuration in a database on the node with the management panel. Database backups are created automatically every day. .. warning:: Do not rename the backup file! Otherwise you will not be able to restore the management database from it. To back up the database manually, open the **SETTINGS** > **Backup** screen and click **BACKUP NOW**. .. image:: /images/stor_image1_7.png :align: center :class: align-center Once backup is completed, the **Last backup** date will be refreshed. .. _Restoring Management Database from Backup: Restoring Management Database from Backup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can restore a management node database from backup on the following nodes: - the same management node or any node assigned to a cluster, - a new node outside the cluster. In this case, |product_name| will restore the database and install only the management panel component on the node. To restore to the same management node or a cluster node, run the following script: :: # /usr/libexec/vstorage-ui-backend/bin/restore-management-node.sh \ -x -i where ```` and ```` are interfaces with already assigned public and internal roles. They will be assigned the **WebCP** and **Management** roles, respectively. .. note:: You can specify the same network interface in both parameters. To restore the database to a new node, do the following: #. Copy the backup file ``/mnt/vstorage/webcp/backup/backup-.tar`` from the initial management node to the same directory on the target node. #. Run the following script on the target node: :: # /usr/libexec/vstorage-ui-backend/bin/restore-management-node.sh \ -x -i \ -f where ```` and ```` are interfaces to be assigned the **WebCP** and **Management** roles, respectively.