pvebackup

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package pvebackup runs Proxmox VE host backups from the filesystem agent: it collects the node's configuration and inventory into a spool directory, archives it together with /etc, /root and optional data paths, and generates a restore runbook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Run executes one Proxmox VE host backup: collect → archive → manifest → upload

Types

type RunOptions

type RunOptions struct {
	Session *temporal.BackupSessionInfo
	Spec    *pvespec.Spec
	// SpoolDir receives the collected inventory (<SpoolDir>/<run id>/collect)
	SpoolDir string
	Upload   UploadFunc
	Progress func(phase string)
	// Runner overrides the process runner (tests)
	Runner       dbrun.Runner
	Hostname     string
	AgentVersion string
	// KeepSpool leaves the collect directory in place after the run (debugging)
	KeepSpool bool
}

RunOptions parameterise Run

type UploadFunc

type UploadFunc func(ctx context.Context, paths, excludes []string, blobs []gopbs.Blob) (*temporal.BackupExecutionResult, error)

UploadFunc archives the given roots (with the exclude patterns) plus blobs into PBS; the activity binds it to the pxar engine with the run's session

Jump to

Keyboard shortcuts

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