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 ¶
func Run(ctx context.Context, o RunOptions) (*temporal.BackupExecutionResult, error)
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
Click to show internal directories.
Click to hide internal directories.