The following restrictions apply when taking snapshots.
- The
createSnapshotOperation cannot be combined with other
operations in the same Web service request.
- Do not submit snapshot
requests when the Dgraph process is running updates for the data store.
- Do not submit snapshot
requests when the Dgraph process is running an outer transaction request issued
by the Transaction Web Service for the data store.
- The
createSnapshotOperation requires a URI absolute path
indicating where the snapshot should be recorded; it should have the following
format:
file:///localdisk/username/dir. Specifying a
relative path causes the operation to fail.
- If you are running a cluster
of nodes (as opposed to running a single server that is not part of the
cluster), run the
createSnapshotOperation on the data store whose Dgraph
process is configured as the leader node.
- Do not modify snapshot
files. Because snapshots represent internal files needed to restore the data
structures, they are not human-readable and should be treated as read-only.
Modifying a snapshot can corrupt the data files.