set

package
v1.65.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",
	Usage: "Delete or undelete a set, or show and change its 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 now 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 a set's retention policy, or the store's default when no name is given; a keep flag replaces the policy, --inherit removes it",
			ArgsUsage: "[<name>]",
			Flags: []cli.Flag{
				cli.IntFlag{Name: "keep-last", Usage: "keep this many of the newest commits"},
				cli.StringSliceFlag{Name: "keep", Usage: "keep the last commit of each of the latest <count> calendar periods, given as <period>=<count>; repeat it for each bracket, newest first; the last bracket may omit 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: "remove the policy, so a set follows the store's policy and the store follows the built-in one"},
				cli.IntFlag{Name: "trash-days", Value: -1, Usage: "store only: how many days a deleted commit waits before it is tombstoned"},
			},
			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