Backup & Restore
OWLGraph Cloud
Section titled “OWLGraph Cloud”Automatic Backups
Section titled “Automatic Backups”| Instance | Backup Frequency | Retention |
|---|---|---|
| Free (XS) | Daily | 7 days |
| Paid (S and above) | Daily | 30 days (point-in-time recovery) |
Backups are managed automatically. No configuration needed. Backup storage is included in your storage billing.
Manual Backup (Cloud)
Section titled “Manual Backup (Cloud)”From the dashboard, navigate to your database and click Backups to:
- Download a backup snapshot
- Trigger an on-demand backup
- Restore from a specific point in time (paid instances)
Self-Hosted
Section titled “Self-Hosted”Export
Section titled “Export”# Full export (includes ontology metadata)curl -X POST "http://localhost:8080/admin" \ -H "Content-Type: application/json" \ -d '{ "query": "mutation { export(input: { format: \"json\" }) { response { message } } }" }'Backup to S3/MinIO
Section titled “Backup to S3/MinIO”curl -X POST "http://localhost:8080/admin" \ -H "Content-Type: application/json" \ -d '{ "query": "mutation { backup(input: { destination: \"s3://bucket/path\" }) { response { message } } }" }'Restore
Section titled “Restore”dgraph restore -p /path/to/backup -l /path/to/restoreAfter restore, the ontology is automatically reloaded from the persisted OWLGraphMeta node — no manual ontology reload needed.
Best Practices
Section titled “Best Practices”- Test restore procedures regularly
- Keep ontology
.ttlfiles in version control as an additional safety net - For production, use a paid instance size (S or above) for 30-day point-in-time recovery