backup

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChunkSize = 4 * 1024 * 1024 // 4 MB chunk size (PBS standard chunk size target)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupEngine

type BackupEngine struct {
	ProxyURL   string
	Ticket     string
	Datastore  string
	Namespace  string
	HTTPClient *http.Client
}

BackupEngine executes filesystem backup operations and streams chunks to PBS Proxy

func NewBackupEngine

func NewBackupEngine(proxyURL, ticket, datastore, namespace string) *BackupEngine

NewBackupEngine creates a new backup engine for an active session

func (*BackupEngine) ExecuteFilesystemBackup

func (b *BackupEngine) ExecuteFilesystemBackup(ctx context.Context, paths, excludePatterns []string, onProgress ProgressFunc) (*temporal.BackupExecutionResult, error)

ExecuteFilesystemBackup scans backup paths, chunks files, streams to PBS proxy, and builds snapshot manifest

type ProgressFunc

type ProgressFunc func(currentFile string, bytesScanned, bytesUploaded int64, chunks int)

ProgressFunc callback for periodic status heartbeats

Jump to

Keyboard shortcuts

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