Skip to content

Backup & Restore

Automatic backups run daily. Retention is a per-database setting and defaults to 7 days.

Backups are managed automatically. No configuration needed. Backup storage is included in your storage billing.

From the dashboard, navigate to your database and click Backups to:

  • Download a backup snapshot
  • Trigger an on-demand backup
  • Restore from a backup
Terminal window
# 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 } } }" }'
Terminal window
curl -X POST "http://localhost:8080/admin" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation { backup(input: { destination: \"s3://bucket/path\" }) { response { message } } }"
}'
Terminal window
dgraph restore -p /path/to/backup -l /path/to/restore

After restore, the ontology is automatically reloaded from the persisted OWLGraphMeta node — no manual ontology reload needed.

  • Test restore procedures regularly
  • Keep ontology .ttl files in version control as an additional safety net