restore

package
v0.2.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package restore contains restore operations against etcd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Restore

func Restore(endpoint, backupid, target, remote, bucket string) (int, error)

Restore takes archive file afile (without file extension) and unpacks it into a target directory. It then traverses the target directory in the local filesystem and populates an etcd server at endpoint with the content of the sub-directories. On success returns the number of keys restored. Example:

krestored, err := Restore("http://localhost:2379", "1498055655", "/tmp", "play.minio.io:9000", "reshifter-test-cluster")

Types

This section is empty.

Jump to

Keyboard shortcuts

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