Skip to content

Commit

Permalink
docs: Add section on automating backups. (#6345)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored Sep 4, 2020
1 parent dc66617 commit 0fab710
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions wiki/content/enterprise-features/binary-backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ endpoints, this is only accessible on the same machine as the Alpha unless
[whitelisted for admin operations]({{< relref "deploy/dgraph-administration.md#whitelisting-admin-operations" >}}).
Execute the following mutation on /admin endpoint using any GraphQL compatible client like Insomnia, GraphQL Playground or GraphiQL.


### Backup to Amazon S3

```graphql
Expand Down Expand Up @@ -210,6 +209,22 @@ mutation {
}
```

### Automating Backups

You can use the provided endpoint to automate backups, however, there are a few
things to keep in mind.

- The requests should go to a single alpha. The alpha that receives the request
is responsible for looking up the location and determining from which point the
backup should resume.

- Versions of Dgraph starting with v20.07.1, v20.03.5, and v1.2.7 have a way to
block multiple backup requests going to the same alpha. For previous versions,
keep this in mind and avoid sending multiple requests at once. This is for the
same reason as the point above.

- You can have multiple backup series in the same location although the feature
still works if you set up a unique location for each series.

## Encrypted Backups

Expand Down Expand Up @@ -316,4 +331,4 @@ $ dgraph restore -p /var/db/dgraph -l /var/backups/dgraph
Specify the Zero address and port for the new cluster with `--zero`/`-z` to update the timestamp.
```sh
$ dgraph restore -p /var/db/dgraph -l /var/backups/dgraph -z localhost:5080
```
```

0 comments on commit 0fab710

Please sign in to comment.