BackupSpec

(Appears on: Backup, BackupScheduleSpec)

BackupSpec contains the backup specification for a tidb cluster.

FieldDescription
from
TiDBAccessConfig

From is the tidb cluster that needs to backup.

backupType
BackupType

Type is the backup type for tidb cluster.

tikvGCLifeTime
string

TikvGCLifeTime is to specify the safe gc life time for backup. The time limit during which data is retained for each GC, in the format of Go Duration. When a GC happens, the current time minus this value is the safe point.

StorageProvider
StorageProvider

(Members of StorageProvider are embedded into this type.)

StorageProvider configures where and how backups should be stored.

storageClassName
string
(Optional)

The storageClassName of the persistent volume for Backup data storage. Defaults to Kubernetes default storage class.

storageSize
string

StorageSize is the request storage size for backup job

br
BRConfig

BRConfig is the configs for BR

tolerations
[]Kubernetes core/v1.Toleration
(Optional)

Base tolerations of backup Pods, components may add more tolerations upon this respectively

affinity
Kubernetes core/v1.Affinity
(Optional)

Affinity of backup Pods

useKMS
bool

Use KMS to decrypt the secrets

serviceAccount
string

Specify service account of backup