restore

package
v0.9.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2015 License: MIT Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Stdout io.Writer
	Stderr io.Writer
}

Command represents the program execution for "influxd restore".

func NewCommand

func NewCommand() *Command

NewCommand returns a new instance of Command with default settings.

func (*Command) Restore

func (cmd *Command) Restore(config *Config, path string) error

Restore restores a database snapshot

func (*Command) Run

func (cmd *Command) Run(args ...string) error

Run executes the program.

type Config

type Config struct {
	Meta *meta.Config `toml:"meta"`
	Data tsdb.Config  `toml:"data"`
}

Config represents a partial config for rebuilding the server.

Jump to

Keyboard shortcuts

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