Backup & Restore
What to back up
Section titled “What to back up”| Data | Location |
|---|---|
| Database (PostgreSQL) | Docker volume |
| Wiki attachments | Storage provider (Docker volume when local) |
| Environment / secrets | /opt/echolore/.env |
Database backup
Section titled “Database backup”cd /opt/echoloredocker compose exec db pg_dump -U echolore echolore > backup_$(date +%Y%m%d).sqlDatabase restore
Section titled “Database restore”cd /opt/echolorecat backup_20260329.sql | docker compose exec -T db psql -U echolore echoloreFull volume backup
Section titled “Full volume backup”docker run --rm \ -v echolore_pgdata:/data:ro \ -v $(pwd):/backup \ alpine tar czf /backup/pgdata_$(date +%Y%m%d).tar.gz -C /data .Automating backups
Section titled “Automating backups”Scheduled backups can be configured in Admin console → Settings → Backup. See docs/backup-strategy.md in the repository for retention policy details.
Restore notes
Section titled “Restore notes”- Restart services with
docker compose up -dafter restoring - You cannot restore a backup from a newer schema into an older image — boot the image version matching the backup