> For the complete documentation index, see [llms.txt](https://sugoi.gitbook.io/lanraragi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sugoi.gitbook.io/lanraragi/dev/advanced-usage/backup-and-restore.md).

# Backup and Restore

This page, available from the top menu once logged in, allows you to backup the entire database to a JSON file.\
This includes **all your categories**, and for **every Archive/Tankoubon in the database**:

* The unique ID of the archive (For the more technologically-enclined: LRR uses a SHA-1 hash of the first 512KBs of the file as the ID)
* Metadata (Tags, Title, Summary)
* Stamps

This JSON can then be restored in another LRR instance, if it has archives with matching unique IDs.

{% hint style="info" %}
You can also make backup JSONs with the `npm run backup-db` command or through the Client API.
{% endhint %}

![Average backup.json](/files/RpRAYeG82r7UbWOQxRZI)
