Skip to main content

Create a Snapshot

Run the Example

You can create a new snapshot on the file system, and generate and store a new Ed25519 key inside the desired location by running the following command from within the client crate.

cargo run --example cli create-snapshot --path "/path/to/snapshot.file" --client-path "client-path-0" --vault-path "vault-path" --record-path "record-path" --key "passphrase"

Expected Output

[2022-06-28T14:27:05Z INFO  cli] Snapshot created successully? true

Example Code

client/examples/cli/main.rs
loading...