Skip to content

Commit

Permalink
Checkpoints directory changed (#883)
Browse files Browse the repository at this point in the history
* Update 3.manage-snapshot.md

checkpoints directory changed

* Update 3.manage-snapshot.md

* Update 3.manage-snapshot.md
  • Loading branch information
abby-cyber authored Nov 4, 2021
1 parent 21079a0 commit c479737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/7.data-security/3.manage-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ nebula> SHOW SNAPSHOTS;

Currently, there is no command to restore data with snapshots. You need to manually copy the snapshot file to the corresponding folder, or you can make it by using a shell script. The logic implements as follows:

1. After the snapshot is created, the `checkpoints` directory is generated in the installation directory of the leader Meta server and all Storage server, and saves the created snapshot. Taking this topic as an example, when there are two graph spaces, the snapshots created are saved in `/usr/local/nebula/data/meta/nebula/0/checkpoints`, `/usr/local/nebula/data/storage/ nebula/3/checkpoints` and `/usr/local/nebula/data/storage/nebula/4/checkpoints`.
1. After the snapshot is created, the `checkpoints` directory is generated in the installation directory of the leader Meta server and all Storage servers, and saves the created snapshot. Taking this topic as an example, when there are two graph spaces, the snapshots created are saved in `/usr/local/nebula/data/meta/nebula/0/checkpoints`, `/usr/local/nebula/data/storage/ nebula/3/checkpoints` and `/usr/local/nebula/data/storage/nebula/4/checkpoints`.

```bash
$ ls /usr/local/nebula/data/meta/nebula/0/checkpoints/
Expand All @@ -105,7 +105,7 @@ Currently, there is no command to restore data with snapshots. You need to manua

!!! caution

The data and wal directories of all Meta nodes should be overwritten at the same time. Otherwise, the new leader Meta node will use the latest Meta data after a cluster is restarted.
The data and wal directories of all Meta servers should be overwritten at the same time. Otherwise, the new leader Meta server will use the latest Meta data after a cluster is restarted.

<!-- TODO
Expand Down

0 comments on commit c479737

Please sign in to comment.