restore-index-snapshot

command
v0.31.9-decrease-wait-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Restore Index Snapshot

Description

This utility binary restores snapshots of DPS state index databases. It uses the Badger backup API to load a single file snapshot of the database. Input is read from the standard input and a file can be piped into the binary if desired. The user must indicate which encoding and compression formats were used during snapshot creation.

A new index database will be created at the indicated directory. The restoration will fail if an DPS index database already exists at the given path.

Usage

Usage of restore-index-snapshot:
  -c, --compression string   compression algorithm ("none", "zstd" or "gzip") (default "zstd")
  -e, --encoding string      output encoding ("none", "hex" or "base64") (default "none")
  -i, --index string         database directory for state index (default "index")

Example

Restore a DPS index database from a Gzip compressed file without encoding:

$ restore-index-snapshot -i /var/dps/index -c gzip < dps-index-snapshot.gz

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL