Administrator you can export data from Dgraph to an object store, NFS,
or a file path.
When you export data, typically three files are generated:
g01.gql_schema.gz: The GraphQL schema file. This file can be imported using
the Schema APIsg01.json.gz or g01.rdf.gz: the data from your instance in JSON format or
RDF format. By default, Dgraph exports data in RDF format.g01.schema.gz: This file is the internal Dgraph schema./admin
endpoint of any Alpha node.
Before you begin:
--export flag (defaults to an export
directory). If any of the groups fail because of insufficient space on the
disk, the entire export process is considered failed and an error is returned.
<FORMAT>with json or
rdf in this GraphQL mutation:
destination input field
to the directory where you want to export data. Replace <PATH> in this GraphQL
mutation with the absolute path of the directory to export data.
aws s3 command, which uses a shortened format:
s3://<bucket-name>. <bucket-name> when
specifying the destination in the GraphQL mutation.MINIO_ACCESS_KEY and MINIO_SECRET_KEY to correspond to Azure Storage
Account AccountName and AccountKey.credentials.json, you can access GCS locally using one of
these methods:
secure=false with the destination endpoint in the
destination field:
anonymous to true.
--encryption key-file=value.
--encryption key-file used for Encryption at
Rest and is also used for encrypted
exports.curl to trigger an exportcurl to trigger an export.
curl