vss

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package vss reads Windows volumes from Volume Shadow Copy snapshots, so a backup sees every file as it was at one instant, after the writers of applications such as databases flushed their data.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupported is returned by Take where shadow copies can't be
	// taken: off Windows, and on Windows on other than amd64.
	ErrUnsupported = errors.New("shadow copies are not supported here")

	// ErrPrivilege is returned by Take for a process that is not an
	// elevated administrator.
	ErrPrivilege = errors.New("taking a shadow copy needs an elevated administrator")
)

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct{}

Snapshot is a set of shadow copies taken together.

func Take

func Take(context.Context, ...string) (*Snapshot, error)

Take returns ErrUnsupported off Windows.

func (*Snapshot) FS

func (*Snapshot) FS() backup.FS

FS is nil off Windows.

func (*Snapshot) Release

func (*Snapshot) Release() error

Release does nothing off Windows.

Jump to

Keyboard shortcuts

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