Skip to content

Commit

Permalink
Update doc about Database Export API entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
amengus87 committed May 27, 2024
1 parent 2c998d3 commit fe4aa2e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/docs/commands/database-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ This command should only be used when the backend server is offline. Running thi
:::

### Using Gradle
```bash
gradle bootRun --args="--command --database-export --output=/path/to/dump.json"
```

### Using Java
```bash
java -jar backend.jar --command --database-export --output=/path/to/dump.json
```

### Using Docker
```bash
docker run -v /path/to/output:/output dragon --command --database-export --output=/output/dump.json
```

## Online Export
<WIPS />
To export the database while the backend server is running, use the following API endpoint:
```bash
curl -X 'POST' 'http://localhost:1985/api/backendapi/command/database/database/export'
```

0 comments on commit fe4aa2e

Please sign in to comment.