Cloning a backend allows making a copy of an existing backend. The clone will be created with all the data and schema of the original backend present at the time of cloning. The clone will have its own endpoint and will be independent of the original backend once it is created. Any further changes in either backends will not reflect in the other. Currently, a clone can only be created in the same zone as that of the original backend.
In order to clone your backend, click on the
Clone Backend button under the Settings tab in the dashboard’s sidebar.
You can also clone using the Slash GraphQL CLI as a two step process.
- Create a new backend.
- Restore data into the new backend from the original backend.
You can also perform the restore operation on an existing backend if you have an unused backend or want to resuse an existing endpoint. But note that the restore operation will drop all the existing data along with schema on the current backedn and replace it with the original backend’s data and schema.
This is a companion discussion topic for the original entry at https://dgraph.io/docs/slash-graphql/admin/clone/