> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-guide/backend-development/self-service-operations/data-backup.md).

# Data Backup

## Importance of userkey.json File

**Core Functionality**\
The `userkey.json` file is the most important identity credential file of the Self Service node, responsible for maintaining the Service Key and user registration relationships.

{% hint style="danger" %}
Never delete this file lightly!
{% endhint %}

<details>

<summary>Consequences of deleting userkey.json</summary>

* Change of Service Key
* All registered RelayApp users needing to re-register
* Service interruption and loss of user data associations

</details>

{% hint style="info" %}
Backup Requirements

* Regularly back up and keep the `userkey.json` file securely.
  {% endhint %}

***

## Database Backup

**Full Backup Strategy**

* Regularly back up the entire database is recommended

<details>

<summary>Impact of data recovery if database data is accidentally deleted</summary>

* Service restart required
* All registered users need to re-register

</details>

By following these operation and maintenance measures, you can ensure the stable operation of the Self Service system, quickly identify and solve problems, and guarantee data security. It is recommended to adjust monitoring strategies and backup plans based on actual environments and needs.
