package
5.2.0-alpha+incompatible
Repository: https://github.com/orion7r/br.git
Documentation: pkg.go.dev

# Functions

CheckRestoreDBAndTable is used to check whether the restore dbs or tables have been backup.
DefineBackupFlags defines common flags for the backup command.
DefineCommonFlags defines the flags common to all BRIE commands.
DefineDatabaseFlags defines the required --db flag for `db` subcommand.
DefineFilterFlags defines the --filter and --case-sensitive flags for `full` subcommand.
DefineLogRestoreFlags defines common flags for the backup command.
DefineRawBackupFlags defines common flags for the backup command.
DefineRawRestoreFlags defines common flags for the backup command.
DefineRestoreCommonFlags defines common flags for the restore command.
DefineRestoreFlags defines common flags for the restore tidb command.
DefineTableFlags defines the required --db and --table flags for `table` subcommand.
GetKeepalive get the keepalive info from the config.
GetStorage gets the storage backend from the config.
LogArguments prints origin command arguments.
NewMgr creates a new mgr at the given PD address.
ParseTLSTripleFromFlags parses the (ca, cert, key) triple from flags.
ReadBackupMeta reads the backupmeta file from the storage.
RunBackup starts a backup task inside the current goroutine.
RunBackupRaw starts a backup task inside the current goroutine.
RunLogRestore starts a restore task inside the current goroutine.
RunRestore starts a restore task inside the current goroutine.
RunRestoreRaw starts a raw kv restore task inside the current goroutine.

# Constants

FlagMergeRegionKeyCount is the flag name of merge small regions by key count.
FlagMergeRegionSizeBytes is the flag name of merge small regions by size.

# Structs

BackupConfig is the configuration specific for backup tasks.
CompressionConfig is the configuration for sst file compression.
Config is the common configuration for all BRIE tasks.
LogRestoreConfig is the configuration specific for restore tasks.
RawKvConfig is the common config for rawkv backup and restore.
RestoreCommonConfig is the common configuration for all BR restore tasks.
RestoreConfig is the configuration specific for restore tasks.
RestoreRawConfig is the configuration specific for raw kv restore tasks.
TLSConfig is the common configuration for TLS connection.