Files
aliasvault/docs/installation/advanced/database.md
Leendert de Borst e2aafa3704 Update docs (#963)
2025-06-27 10:51:07 +02:00

23 lines
572 B
Markdown

---
layout: default
title: Database Backup
parent: Advanced
nav_order: 4
---
# Database Backup
In order to backup the database, you can use the `install.sh` script. This script will stop all services, export the database to a file, and then restart the services.
```bash
./install.sh db-backup > backup.sql.gz
```
# Database Restore
To restore the database, you can use the `install.sh` script. This script will stop all services, drop the database, import the database from a file, and then restart the services.
```bash
./install.sh db-restore < backup.sql.gz
```