Skip to content

Backup & Restore

InstanceBackup FrequencyRetention
Free (XS)Daily7 days
Paid (S and above)Daily30 days (point-in-time recovery)

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 specific point in time (paid instances)
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
  • For production, use a paid instance size (S or above) for 30-day point-in-time recovery