backup

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package backup provides physical database backup utility functions intended to be called from a Config Agent gRPC server.

Package backup this file provides the restore and recovery functions from a physical backup and is intended to be called from a Config Agent gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PhysicalBackup

func PhysicalBackup(ctx context.Context, params *Params) (*lropb.Operation, error)

PhysicalBackup takes a physical backup of the oracle database.

func PhysicalBackupDelete

func PhysicalBackupDelete(ctx context.Context, params *Params) error

PhysicalBackupDelete deletes a physical backup of the oracle database.

func PhysicalRestore

func PhysicalRestore(ctx context.Context, params *Params) (*lropb.Operation, error)

PhysicalRestore runs an RMAN restore and recovery. Presently the recovery process goes up to the last SCN in the last archived redo log.

Types

type Params

type Params struct {
	InstanceName      string
	CDBName           string
	Client            dbdpb.DatabaseDaemonClient
	Granularity       string
	Backupset         bool
	DOP               int32
	CheckLogical      bool
	Compressed        bool
	Level             int32
	Filesperset       int32
	SectionSize       resource.Quantity
	LocalPath         string
	GCSPath           string
	BackupTag         string
	OperationID       string
	LogGcsDir         string
	Incarnation       string
	BackupIncarnation string
	StartTime         *timestamppb.Timestamp
	EndTime           *timestamppb.Timestamp
	StartSCN          int64
	EndSCN            int64
}

Params that can be passed to PhysicalBackup.

Jump to

Keyboard shortcuts

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