Skip to content

Commit

Permalink
update nats backup/nats restore
Browse files Browse the repository at this point in the history
Signed-off-by: ainsley <[email protected]>
  • Loading branch information
gcolliso committed Jan 23, 2024
1 parent 2b1db37 commit ba2ee44
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ In environments where the `nats` CLI is used interactively to configure the serv
Here you can back up the configuration into a directory from where you can recover the configuration later. The data for File backed stores can also be backed up.

```shell
nats backup /data/js-backup
nats account backup /data/js-backup
```
```text
15:56:11 Creating JetStream backup into /data/js-backup
Expand All @@ -110,7 +110,7 @@ During the same process the data can also be backed up by passing `--data`, this
Later the data can be restored, for Streams we support editing the Stream configuration in place to match what was in the backup.

```shell
nats restore /tmp/backup --update-streams
nats account restore /tmp/backup --update-streams
```
```text
15:57:42 Reading file /tmp/backup/stream_ORDERS.json
Expand All @@ -119,7 +119,7 @@ nats restore /tmp/backup --update-streams
15:57:42 Restoring Consumer ORDERS > NEW
```

The `nats restore` tool does not support restoring data, the same process using `nats stream restore`, as outlined earlier, can be used which will also restore Stream and Consumer configurations and state.
The `nats account restore` tool does not support restoring data, the same process using `nats stream restore`, as outlined earlier, can be used which will also restore Stream and Consumer configurations and state.


{% hint style="warning" %}
Expand Down

0 comments on commit ba2ee44

Please sign in to comment.