Skip to content

Commit

Permalink
fix: add command for all-in-one binary (#117)
Browse files Browse the repository at this point in the history
* fix: add command for all-in-one binary

* fixup

* update link

---------

Co-authored-by: IrisWan <[email protected]>
  • Loading branch information
zwang28 and WanYixian authored Dec 9, 2024
1 parent e127a3a commit 651613c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions operate/meta-backup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ Here's an example of how to create a new meta snapshot with `risectl`:
risectl meta backup-meta
```

`risectl` is included in the pre-built RisingWave binary. For details, see [Quick start](/get-started/quickstart#binaries).
`risectl` is included in the pre-built RisingWave binary. Use the following command instead:

```bash
./risingwave ctl meta backup-meta
```

## View existing meta snapshots

Expand Down Expand Up @@ -65,7 +69,7 @@ If the cluster has been using a SQL database as meta store backend, follow these
This step is especially important because the meta backup and recovery process does not replicate SST files. It is not permitted for multiple clusters to run with the same SSTs set at any time, as this can corrupt the SST files.
</Note>
2. Create a new meta store, i.e. a new SQL database instance.
Note that this new SQL database instance must have the exact same tables defined as the original, but all tables should remain empty. To achieve this, you can optionally use the [schema migration tool](https://github.com/risingwavelabs/risingwave/tree/main/src/meta/model%5Fv2/migration) to create tables, then truncate those non-empty tables populated by the tool.
Note that this new SQL database instance must have the exact same tables defined as the original, but all tables should remain empty. To achieve this, you can optionally use the [schema migration tool](https://github.com/risingwavelabs/risingwave/tree/main/src/meta/model/migration) to create tables, then truncate those non-empty tables populated by the tool.
3. Restore the meta snapshot to the new meta store.
```
risectl \
Expand Down

0 comments on commit 651613c

Please sign in to comment.