HomeMogDBMogDB StackUqbar

Documentation:v2.0

Supported Versions:

Backup Management

MogDB Operator provides both full backup and incremental backup.

MogDB Operator provides two backup methods: physical backup and logical backup.

MogDB Operator provides two types of backup storage, posix and s3.


Backup Configuration

If you need to customize the backup configuration, you need to modify the MogDB cluster manifest backup spec, please refer to backup spec.

Note: The backup-related configuration here is the global backup configuration for this cluster, some configurations can be specified separately in the backup CR, please refer to backup CRD References.

The configuration of the physical backup is as follows, please refer to GSBaseBackup:

apiVersion: mogdb.enmotech.io/v1
kind: MogdbCluster
spec:
  backup:
    # Physical backup
    GSBaseBackup:
      # Backup strategy
      backupSchedule: "0 */1 * * * ?"
      # Retain the historical maximum number
      backupScheduleHistoryLimit: 5
      # Backups are stored as posix by default
      # If you want to enable the s3 method of storing backups, populate the following configuration
      s3:
        region: ""
        bucket: ""
        provider: ""
        endPoint: ""
        secretName: ""

The configuration of the logical backup is as follows, please refer to GSDumpAll:

apiVersion: mogdb.enmotech.io/v1
kind: MogdbCluster
spec:
  backup:
    # Logical backup
    GSDumpAll:
      # Backup strategy
      backupSchedule: "0 */1 * * * ?"
      # Retain the historical maximum number
      backupScheduleHistoryLimit: 5
      # Backups are stored as posix by default
      # If you want to enable the s3 method of storing backups, populate the following configuration
      s3:
        region: ""
        bucket: ""
        provider: ""
        endPoint: ""
        secretName: ""

backup CR

To back up a MogDB cluster on Kubernetes, users can create a custom backup CR object based on backup CRD References to create a custom backup CR object to describe a backup.

We also provide you with backup CR Demo for your reference.


Architecture

deploy-arch

Copyright © 2011-2024 www.enmotech.com All rights reserved.