docs: add database backup restore guide

This commit is contained in:
Christian Krakau-Louis
2026-05-22 22:15:53 +02:00
parent be983e7110
commit b5508e428c
9 changed files with 168 additions and 32 deletions
+1 -9
View File
@@ -259,15 +259,7 @@ docker-compose ps
### Database Backups
For PostgreSQL backups:
```bash
# Create a backup
docker-compose exec db pg_dump -U dmarq dmarq > backup_$(date +%Y%m%d).sql
# Restore from a backup
cat backup_file.sql | docker-compose exec -T db psql -U dmarq dmarq
```
Back up the database before upgrades and on a regular schedule. See [Database Backup and Restore](backups.md) for SQLite and PostgreSQL backup, restore, and verification commands.
## Troubleshooting