agent

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: 15 Imported by: 0

Documentation

Overview

Package agent holds the goback agent command, which runs a machine's backups on their schedules from one config file.

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:  "agent",
	Usage: "run a machine's backups on their schedules from one config file",
	Description: "The config lists the store once and each backup with its kind and schedule. Store settings come from\n" +
		"the file; a global flag or its variable overrides one.",
	Subcommands: []cli.Command{
		{
			Name:   "run",
			Usage:  "run the backups until SIGTERM; SIGHUP reloads the backups",
			Flags:  []cli.Flag{configFlag},
			Action: runAction,
		},
		{
			Name:   "check",
			Usage:  "validate the config, open the store, print each job's last run and next due time, and list what each database lacks",
			Flags:  []cli.Flag{configFlag},
			Action: checkAction,
		},
		{
			Name:  "status",
			Usage: "print the status file a running agent writes, without touching the store",
			Flags: []cli.Flag{
				configFlag,
				cli.BoolFlag{
					Name:  "check",
					Usage: "exit 1 when the agent is hung or a job is stale, 2 when there is no status to read",
				},
			},
			Action: statusAction,
		},
	},
}

Command is the agent 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