apiVersion: pingcap.com/v1alpha1
kind: Restore
metadata:
  name: basic-restore-local
  namespace: default
spec:
  # backupType: full
  # Only needed for TiDB Operator < v1.1.7 or TiDB < v4.0.8
  # from:
  #   host: ${tidb-host}
  #   port: ${tidb-port}
  #   user: ${tidb-user}
  #   secretName: backup-basic-tidb-secret
  br:
    cluster: basic
    clusterNamespace: default
    # logLevel: info
    # statusAddr: ${status-addr}
    # concurrency: 4
    # rateLimit: 0
    # checksum: true
    # sendCredToTikv: true
    # options:
    # - --lastbackupts=420134118382108673
  local:
    volume:
      name: xhostpath
      hostPath:
        path: /home
        type: DirectoryOrCreate
    volumeMount:
      name: xhostpath
      mountPath: /data
