config

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Key = "backup"
	// Folder archives are written to and looked for in, the backups folder of icebath's own when empty
	Folder = Key + ".folder"
	// Full backups hold the keys and passwords icebath keeps
	Secrets = Key + ".secrets"
	// Titles of what full backups leave out
	Skip = Key + ".skip"
	// Archives made by hand that are kept, the oldest removed past it
	Keep = Key + ".keep"
	// What is taken on a schedule, off, snapshot or full, how often, and the archives of the schedule kept
	Schedule     = Key + ".schedule"
	Every        = Key + ".every"
	ScheduleKeep = Key + ".schedule_keep"
	// What is taken before an update, off, snapshot or full, and the archives taken before updates kept
	BeforeUpdate = Key + ".before_update"
	UpdateKeep   = Key + ".update_keep"
	// Snapshots kept, and the largest file a snapshot copies
	Snapshots = Key + ".snapshots"
	Largest   = Key + ".snapshot_limit"
	// A damaged database is restored from the newest snapshot that holds a good copy of it
	Mend = Key + ".mend"
	// Public keys of other icebath installations whose archives are restored as this one's own
	Trusted = Key + ".trusted"
)
View Source
const (
	Off      = "off"
	Snapshot = "snapshot"
	Full     = "full"
)

What a schedule or an update takes

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config, left func(values *config.Config) []config.Option)

Registers the settings of backups, left listing what of each profile an archive may leave out

Types

This section is empty.

Jump to

Keyboard shortcuts

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