backup

package
v0.314.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupCmd

func BackupCmd(ch *cmdutil.Helper) *cobra.Command

BackupCmd handles branch backups.

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing backups for a branch.

func PolicyCmd added in v0.313.0

func PolicyCmd(ch *cmdutil.Helper) *cobra.Command

PolicyCmd manages database backup schedules/policies.

func PolicyCreateCmd added in v0.313.0

func PolicyCreateCmd(ch *cmdutil.Helper) *cobra.Command

PolicyCreateCmd creates a backup policy.

func PolicyDeleteCmd added in v0.313.0

func PolicyDeleteCmd(ch *cmdutil.Helper) *cobra.Command

PolicyDeleteCmd deletes a backup policy.

func PolicyListCmd added in v0.313.0

func PolicyListCmd(ch *cmdutil.Helper) *cobra.Command

PolicyListCmd lists backup policies for a database.

func PolicyShowCmd added in v0.313.0

func PolicyShowCmd(ch *cmdutil.Helper) *cobra.Command

PolicyShowCmd shows a single backup policy.

func PolicyUpdateCmd added in v0.313.0

func PolicyUpdateCmd(ch *cmdutil.Helper) *cobra.Command

PolicyUpdateCmd updates a backup policy.

func RestoreCmd added in v0.69.0

func RestoreCmd(ch *cmdutil.Helper) *cobra.Command

func ShowCmd added in v0.13.0

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

Types

type Backup added in v0.14.0

type Backup struct {
	PublicID    string `header:"id" json:"id"`
	Name        string `header:"name" json:"name"`
	State       string `header:"state" json:"state"`
	Size        int64  `header:"size" json:"size"`
	CreatedAt   int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt   int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	StartedAt   int64  `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
	ExpiresAt   int64  `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
	CompletedAt int64  `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
	// contains filtered or unexported fields
}

func (*Backup) MarshalCSVValue added in v0.17.0

func (b *Backup) MarshalCSVValue() interface{}

func (*Backup) MarshalJSON added in v0.14.0

func (b *Backup) MarshalJSON() ([]byte, error)

type BackupPolicy added in v0.313.0

type BackupPolicy struct {
	ID           string `header:"id" json:"id"`
	Name         string `header:"name" json:"name"`
	Target       string `header:"target" json:"target"`
	Retention    string `header:"retention" json:"retention"`
	Frequency    string `header:"frequency" json:"frequency"`
	ScheduleTime string `header:"schedule_time" json:"schedule_time"`
	ScheduleDay  string `header:"schedule_day" json:"schedule_day"`
	ScheduleWeek string `header:"schedule_week" json:"schedule_week"`
	Required     bool   `header:"required" json:"required"`
	LastRanAt    *int64 `header:"last_ran_at,timestamp(ms|utc|human)" json:"last_ran_at"`
	NextRunAt    *int64 `header:"next_run_at,timestamp(ms|utc|human)" json:"next_run_at"`
	CreatedAt    int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt    int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

BackupPolicy is the human/JSON/CSV view of a backup policy.

func (*BackupPolicy) MarshalCSVValue added in v0.313.0

func (p *BackupPolicy) MarshalCSVValue() interface{}

func (*BackupPolicy) MarshalJSON added in v0.313.0

func (p *BackupPolicy) MarshalJSON() ([]byte, error)

type Backups added in v0.14.0

type Backups []*Backup

func (Backups) String added in v0.14.0

func (b Backups) String() string

Jump to

Keyboard shortcuts

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