set

package
v1.63.0 Latest Latest
Warning

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

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

Documentation

Overview

Package set manages backup sets.

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:        "set",
	Description: "Delete and undelete sets, and show or change their retention",
	Subcommands: []cli.Command{
		{
			Name:      "delete",
			Usage:     "Close a set and retire its commits; --erase skips the trash window",
			ArgsUsage: "<name>",
			Flags:     []cli.Flag{cli.BoolFlag{Name: "erase", Usage: "tombstone the commits at once instead of after the trash window"}},
			Action:    deleteAction,
		},
		{
			Name:      "undelete",
			Usage:     "Reopen a set before its commits are tombstoned",
			ArgsUsage: "<name>",
			Action:    undeleteAction,
		},
		{
			Name:      "retention",
			Usage:     "Show or change the retention of a set, or the store's defaults without a name; a keep flag replaces the policy, --inherit drops it",
			ArgsUsage: "[<name>]",
			Flags: []cli.Flag{
				cli.IntFlag{Name: "keep-last", Usage: "keep the newest this many commits"},
				cli.StringSliceFlag{Name: "keep", Usage: "a bracket as <period>=<count> calendar periods, newest first, repeated; the last may drop its count to keep forever (--keep hourly=336 --keep daily=60 --keep weekly=12 --keep monthly)"},
				cli.DurationFlag{Name: "keep-within", Usage: "keep every commit younger than this"},
				cli.BoolFlag{Name: "inherit", Usage: "drop the policy: a set inherits the store's, the store uses the built-in"},
				cli.IntFlag{Name: "trash-days", Value: -1, Usage: "store only: days a deleted commit waits for its tombstone"},
			},
			Action: retentionAction,
		},
	},
}

Command is the set command.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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