mongocli ops-manager backup config update
The backup config update
command updates one backup
configuration. You can also update a backup configuration
using the API.
Syntax
mongocli ops-manager|om backup config update <cluster-ID> [ --authMechanism <authentication-mechanism> ] [ --encryption ] [ --excludedNamespace <excluded-namespaces> ] [ --includedNamespace <included-namespaces> ] [ --output|-o <command-output-format> ] [ --password <sync-source-db-password> ] [ --projectId <project-ID> ] [ --provisioned ] [ --ssl ] [ --status <backup-configuration-status> ] [ --storageEngine <backup-storage-engine> ] [ --syncSource <sync-source-mongod-instance> ] [ --username <sync-source-db-username> ]
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<cluser-ID> | string | Unique identifier of the cluster whose backup
configuration you want to update. You can use the
mongocli ops-manager cluster list to retrieve the
ID of a cluster. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--authMechanism | string | Required if the sync store uses authentication. Authentication mechanism to use to connect to the sync source database. Valid values are:
| no |
--encryption | Flag to enable encryption for the backup data. You must include
the syncSource option when enabling encryption. To enable
encryption for existing backups in a project, you must do an
initial backup sync to recreate the backups' head databases. | no | |
--excludedNamespace | array of strings | List of namespaces, which include the
database name, the dot ( The list must include both new and existing excluded namespaces.
If an existing excluded namespace is omitted from the list to
remove it, you must set the If omitted, all namespaces are included in the backup. This option only applies to head databases running MongoDB FCV v4.0 or earlier. | no |
--includedNamespace | array of strings | List of namespaces, which include the
database name, the dot ( The list must include both new and existing included namespaces.
If an existing included namespace is omitted from the list to
remove it, you must set the If omitted, all namespaces are included in the backup. This option only applies to head databases running MongoDB FCV v4.0 or earlier. | no |
--output , -o | string | Command output format. Valid values are:
If omitted, the command returns output in the default format. | no |
--password | string | Required if the sync source Password to use to connect to the sync source database. | conditional |
--profile , -P | string | Name of the profile where the project ID and the Programmatic API Keys
for the project are saved. If omitted, uses the
default profile.
To learn more about creating a profile, see
Configure the MongoDB CLI. | no |
--projectId | string | Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable. | no |
--provisioned | Flag to provision the resources needed to store a backup. If
omitted, Ops Manager doesn't provision the resources to store a
backup. | no | |
--ssl | Flag to enable TLS for the sync source database. If omitted,
Ops Manager does not enable TLS for the sync source database. | no | |
--status | string | Desired status of the backup configuration. Valid values are:
If omitted, Ops Manager doesn't modify the current status of the backup configuration. For more information, see Backup Definition and Operational States. | no |
--storageEngine | string | Storage engine to use for the backup. Valid values are:
| no |
--syncSource | string | Required if
| conditional |
--username | string | Required if the sync source Username to use to connect to the sync source database. | conditional |
Output
If the command succeeds, it returns the following output in the default format. If the command returns errors, see Troubleshooting for recommended solutions.
PROJECT ID CLUSTER ID STATUS STORAGE ENGINE <project-ID> <cluster-ID> <status> <storage-engine>
The default output contains a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the API reference.
Example
The following example uses the mongocli ops-manager backup config
update
command updates the backup configuration for the specified
cluster. The command uses the default profile for accessing
the Atlas project.
mongocli ops-manager backup config update 5fa958c2d765fe62f0aff5fc
The previous command returns the following:
PROJECT ID CLUSTER ID STATUS STORAGE ENGINE 5fa95889d765fe62f0aff52f 5fa958c2d765fe62f0aff5fc STARTED WIRED_TIGER
mongocli ops-manager backup config update 5fabae1d98bd2e1eddb875b3 --output json
The previous command returns the following:
{ "groupId": "5faba4b381b378146d110f67", "clusterId": "5fabae1d98bd2e1eddb875b3", "statusName": "STARTED", "storageEngineName": "WIRED_TIGER", "authMechanismName": "NONE", "encryptionEnabled": false, "sslEnabled": false }