vss

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package vss backs Windows backups with Volume Shadow Copies: every volume a job's paths live on is snapshotted, the shadow copy is exposed through a directory symlink under the agent's data directory, and the job's paths are remapped onto it so open and locked files are read from a consistent point in time. On other platforms nothing is snapshotted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Supported

func Supported() bool

Supported reports whether this platform can take shadow copies

func Sweep

func Sweep(linkDir string)

Sweep removes shadow copies and links left behind by a crashed run

Types

type Snapshots

type Snapshots struct {
	// contains filtered or unexported fields
}

Snapshots holds the shadow copies of one backup run

func Take

func Take(ctx context.Context, linkDir string, paths []string) ([]string, *Snapshots, error)

Take snapshots the volumes of paths and returns each path remapped into its shadow copy (same order). linkDir receives one directory symlink per shadow copy. The caller must Release the snapshots when the backup is done.

func (*Snapshots) Release

func (s *Snapshots) Release()

Release removes the symlinks and deletes the shadow copies (best effort, logged)

Jump to

Keyboard shortcuts

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