backup:
  identity:
  create: false
  binlogImage: pingcap/tidb-binlog:latest
  # https://github.com/tennix/tidb-cloud-backup
  mydumperImage: pingcap/tidb-cloud-backup:latest
  # storage: "5Gi"
  # https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#schedule
  # schedule: "0 0 * * *"
  # https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#suspend
  suspend: false
  # https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 1
  # https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#starting-deadline
  startingDeadlineSeconds: 3600
  # https://github.com/maxbube/mydumper/blob/master/docs/mydumper_usage.rst#options
  # Don't use the --compress option
  # restore could add a line: for f in *.gz ; do gzip -d "$f" ; done
  # However, that will increase space usage to an undetermined amount.
  options: "--chunk-filesize=100"
  # user must set tidb cluster user and password
  user: dbaas_root
  # backup to gcp
  gcp:
    create: true
