restore

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBucketManifest

func ConvertBucketManifest(manifest br.ManifestBucketEntry) api.BucketMetadataManifest

ConvertBucketManifest converts a manifest parsed from local disk into a model compatible with the server-side API.

func ConvertRetentionPolicy

func ConvertRetentionPolicy(manifest br.ManifestRetentionPolicy) api.RetentionPolicyManifest

func ConvertShard

func ConvertShard(manifest br.ManifestShardEntry) api.ShardManifest

func ConvertShardGroup

func ConvertShardGroup(manifest br.ManifestShardGroup) api.ShardGroupManifest

Types

type ApiConfig added in v2.2.0

type ApiConfig interface {
	GetConfig() *api.Configuration
}

type Client

type Client struct {
	clients.CLI
	api.HealthApi
	api.RestoreApi
	api.BucketsApi
	api.OrganizationsApi
	ApiConfig
	// contains filtered or unexported fields
}

func (*Client) Restore

func (c *Client) Restore(ctx context.Context, params *Params) error

type Params

type Params struct {
	// Path to local backup data created using `influx backup`
	Path string

	// Original ID/name of the organization to restore.
	// If not set, all orgs will be restored.
	clients.OrgParams

	// New name to use for the restored organization.
	// If not set, the org will be restored using its backed-up name.
	NewOrgName string

	// Original ID/name of the bucket to restore.
	// If not set, all buckets within the org filter will be restored.
	clients.BucketParams

	// New name to use for the restored bucket.
	// If not set, the bucket will be restored using its backed-up name.
	NewBucketName string

	// If true, replace all data on the server with the local backup.
	// Otherwise only restore the requested org/bucket, leaving other data untouched.
	Full bool
}

Jump to

Keyboard shortcuts

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