Documentation ¶
Overview ¶
Package restore contains restore operations against etcd.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Restore ¶
Restore takes a backup ID and unpacks it into the target directory. It then walk the target directory in the local filesystem and populates an etcd server at endpoint with the content of the sub-directories. On success it returns the number of keys restored.
Example ¶
Shows how to restore a Kubernetes cluster by specifying the underlying etcd. It assumes that the etcd process is servering on 127.0.0.1:2379. Takes the backup from Minio play, a public S3-compatible storage sandbox.
Output: The restore completed successfully. Restored 1042 keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.