v2.0
- About MogDB Stack
- Quick Start
- Installation
- Tutorial
- Architecture
- References
- Client
- mgo
- mgo create
- mgo create mgorole
- mgo create mgouser
- mgo create cluster
- mgo show
- mgo show k8s
- mgo show mgorole
- mgo show mgouser
- mgo show cluster
- mgo show restore
- mgo delete
- mgo delete mgorole
- mgo delete mgouser
- mgo delete cluster
- mgo delete backup
- mgo delete k8s
- mgo scale
- mgo scaledown
- mgo switch
- mgo update
- mgo update mgorole
- mgo update mgouser
- mgo update cluster
- mgo version
- mgo addk8s
- mgo localk8s
- mgo backup
- mgo backup detail
- mgo restore
- mgo minio
- mgo minio object
- mgo minio object ls
- mgo minio object stat
- mgo minio object getf
- Server
- Client
- FAQ
- Release Note
Perform Manual Backup
Overview
The BACKUP command allows you to perform a manual backup of the cluster. Example:
mgo backup mycluster --backup-type=basebackup --backup-level=incr
mgo backup [flags]
Options
--backup-image string Backup image, default latest version.
--backup-level string Backup level. It is divided into "incr" or "full". (default "incr")
--backup-s3-bucket string When "S3" storage type is enabled for backup, the S3 storage buckets applied to the cluster
--backup-s3-endpoint string When "S3" storage type is enabled for backup, the S3 storage nodes applied to the cluster
--backup-s3-key string When "S3" storage type is enabled for backup, the S3 node access key applied to the cluster
--backup-s3-key-secret string When "S3" storage type is enabled for backup, the S3 node access key secret applied to the cluster
--backup-s3-region string When "S3" storage type is enabled for backup, the S3region applied to the cluster
--backup-storage-type string Backup storage types. There are "posix" and "s3". (default "posix")
--backup-type string Types of backups. There are "basebackup" and "dumpall". (default "basebackup")
--dbName string Specify the backup database name
-h, --help backup help information
--tbNames string Specify the name of the backup form, separating multiple names with commas
Options Inherited From The Parent Command
--apiserver-url string The URL of the MogDB Operator apiserver that will handle requests from the mgo client. please note that the URL should not end in "/"
--debug Enable debug output for debugging
--disable-tls Disable TLS authentication for MogDB Operator
--exclude-os-trust Exclude CA certificates from the OS default trust store
--k8s-node string Specify k8s node, default local k8s node
--mgo-ca-cert string Connection to MogDB Operator apiserver CA certificate file path.
--mgo-client-cert string Path to the client certificate file used to authenticate to the MogDB Operator apiserver
--mgo-client-key string Path to the client key file used to authenticate to the MogDB Operator apiserver
-n, --namespace string Namespace for mgo requests
Helpful Links
- mgo - mgo command line tool
- mgo backup detail - Get the backup details