Documentation
¶
Overview ¶
Package hooks provides pre and post backup hook functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct { PreBackup string `env:"PREBACKUP" env-default:"" yaml:"prebackup"` PostBackup string `env:"POSTBACKUP" env-default:"" yaml:"postbackup"` }
Hooks holds the configuration for pre and post backup hooks.
func (*Hooks) ExecutePostBackup ¶
ExecutePostBackup executes the post backup command.
func (*Hooks) ExecutePreBackup ¶
ExecutePreBackup executes the pre backup command.
func (*Hooks) GeneratePostBackupCmd ¶
GeneratePostBackupCmd generates the post backup command.
func (*Hooks) GeneratePreBackupCmd ¶
GeneratePreBackupCmd generates the pre backup command.
func (*Hooks) HasPostBackup ¶
HasPostBackup returns true if a post backup command is defined.
func (*Hooks) HasPreBackup ¶
HasPreBackup returns true if a pre backup command is defined.
Click to show internal directories.
Click to hide internal directories.