Documentation ¶
Index ¶
- func BuildFullBackupCmd(ctx context.Context, cfg *base.BackupConfig) (*exec.Cmd, error)
- func BuildIncBackupCmd(ctx context.Context, cfg *base.BackupConfig) (*exec.Cmd, error)
- func BuildMysqldumpCmd(ctx context.Context, cfg *base.BackupConfig) (*exec.Cmd, error)
- func PrepareBaseBackup(ctx context.Context, isLast bool, cfg *base.BackupConfig) (*exec.Cmd, error)
- func PrepareIncBackup(ctx context.Context, inc int, isLast bool, cfg *base.BackupConfig) (*exec.Cmd, error)
- func StringWithMaskPassword(cmd *exec.Cmd) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFullBackupCmd ¶
BuildFullBackupCmd constructs a command to create a full backup.
func BuildIncBackupCmd ¶
BuildIncBackupCmd constructs a command to create a incremental backup.
func BuildMysqldumpCmd ¶
func PrepareBaseBackup ¶
func PrepareBaseBackup( ctx context.Context, isLast bool, cfg *base.BackupConfig, ) (*exec.Cmd, error)
PrepareBaseBackup constructs a command to restore a base backup.
func PrepareIncBackup ¶
func PrepareIncBackup( ctx context.Context, inc int, isLast bool, cfg *base.BackupConfig, ) (*exec.Cmd, error)
PrepareIncBackup constructs a command to restore a incremental backup.
func StringWithMaskPassword ¶
StringWithMaskPassword outputs a string masked password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.