|
| 1 | +.. _ak8so-bcp: |
| 2 | + |
| 3 | +==================================== |
| 4 | +Configure a {+bcp+} |
| 5 | +==================================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +If you have strict data protection requirements, you can use |ak8so| to |
| 16 | +enable a :ref:`{+bcp+} <backup-compliance-policy>` to protect your |
| 17 | +backup data. |
| 18 | + |
| 19 | +.. include:: /includes/fact-you-cannot-disable-bcp.rst |
| 20 | + |
| 21 | +.. _ak8so-bcp-prohibited-actions: |
| 22 | + |
| 23 | +Prohibited Actions |
| 24 | +------------------ |
| 25 | + |
| 26 | +If you enable a {+bcp+}, no user, regardless of role, can do certain |
| 27 | +actions. Carefully review the :ref:`prohibited actions |
| 28 | +<bcp-prohibited-actions>`. |
| 29 | + |
| 30 | +.. important:: |
| 31 | + |
| 32 | + If you set this parameter to ``true``, |service| upgrades all |
| 33 | + backup policies in the project regardless of what is specified in |
| 34 | + the :ref:`atlasbackuppolicy-custom-resource`. |service| overrides |
| 35 | + the :ref:`atlasbackuppolicy-custom-resource` and the status |
| 36 | + of that custom resource updates to ``Ready: False``. You must |
| 37 | + manually update the :ref:`atlasbackuppolicy-custom-resource` to |
| 38 | + align with the {+bcp+}. |
| 39 | + |
| 40 | + If you set this parameter to ``false``, creating the {+bcp+} fails |
| 41 | + if the existing backup policies do not satisfy the {+bcp+}. |
| 42 | + |
| 43 | +.. _ak8so-bcp-considerations: |
| 44 | + |
| 45 | +Considerations |
| 46 | +-------------- |
| 47 | + |
| 48 | +After you enable a {+bcp+}, certain behaviors apply. Carefully |
| 49 | +review the :ref:`considerations <bcp-considerations>`. |
| 50 | + |
| 51 | +Required Access |
| 52 | +--------------- |
| 53 | + |
| 54 | +To configure a {+bcp+}, you must have :authrole:`Project Owner` access |
| 55 | +to the project. Users with :authrole:`Organization Owner` access must |
| 56 | +add themselves as a ``Project Owner`` to the project before configuring |
| 57 | +a {+bcp+}. |
| 58 | + |
| 59 | +Prerequisites |
| 60 | +------------- |
| 61 | + |
| 62 | +- Only MongoDB Support can do the following actions: |
| 63 | + |
| 64 | + - Disable the {+bcp+}. |
| 65 | + |
| 66 | + - Disable :ref:`{+PIT-Restore+} <create-cluster-backups>` if the |
| 67 | + {+bcp+} has the |
| 68 | + :guilabel:`Require Point in Time Restore to all clusters` option |
| 69 | + set to :guilabel:`On`. |
| 70 | + |
| 71 | + - Reduce the :ref:`{+PIT-Restore+} Restore Window |
| 72 | + <create-pit-policy>`. |
| 73 | + |
| 74 | + - Delete :ref:`policy items <creating-backup-policy>` specified in |
| 75 | + the {+bcp+}. |
| 76 | + |
| 77 | +- Only the specified security or legal representative can |
| 78 | + :ref:`request support <request-support>`. |
| 79 | + |
| 80 | +- You can apply a {+bcp+} to ``M10+`` {+dedicated-clusters+} only. |
| 81 | + |
| 82 | + .. note:: |
| 83 | + |
| 84 | + You can't convert a {+dedicated-cluster+} to an ``M0`` |
| 85 | + {+free-cluster+}, an ``M2`` or ``M5`` {+shared-cluster+}, or a |
| 86 | + {+serverless-instance+}. |
| 87 | + |
| 88 | +Procedure |
| 89 | +--------- |
| 90 | + |
| 91 | +.. procedure:: |
| 92 | + :style: normal |
| 93 | + |
| 94 | + .. step:: Create the {+bcp+}. |
| 95 | + |
| 96 | + To learn more about the parameters for a {+bcp+}, see the |
| 97 | + :ref:`bcp-custom-resource`. |
| 98 | + |
| 99 | + **Example:** |
| 100 | + |
| 101 | + .. code-block:: sh |
| 102 | + |
| 103 | + cat <<EOF | kubectl apply -f - |
| 104 | + apiVersion: atlas.mongodb.com/v1 |
| 105 | + kind: AtlasBackupCompliancePolicy |
| 106 | + metadata: |
| 107 | + name: my-backup-compliance-policy |
| 108 | + namespace: mongdb-atlas-system |
| 109 | + spec: |
| 110 | + authorizedEmail: [email protected] |
| 111 | + authorizedUserFirstName: John |
| 112 | + authorizedUserLastName: Doe |
| 113 | + copyProtectionEnabled: false |
| 114 | + encryptionAtRestEnabled: false |
| 115 | + onDemandPolicy: |
| 116 | + retentionUnit: weeks |
| 117 | + retentionValue: 3 |
| 118 | + overwriteBackupPolicies: false |
| 119 | + pointInTimeEnabled: true |
| 120 | + restoreWindowDays: 42 |
| 121 | + scheduledPolicyItems: |
| 122 | + - frequencyInterval: 2 |
| 123 | + frequencyType: daily |
| 124 | + retentionUnit: days |
| 125 | + retentionValue: 7 |
| 126 | + EOF |
| 127 | + |
| 128 | + .. note:: |
| 129 | + |
| 130 | + This {+bcp+} applies as the minimum backup policy to all |
| 131 | + {+clusters+} in the project. The {+bcp+} protects all |
| 132 | + existing snapshots. The {+bcp+} prevents any user, |
| 133 | + regardless of role, from modifying or deleting existing |
| 134 | + snapshots prior to their expiration. Changes made to this |
| 135 | + {+bcp+} apply only to future snapshots. If you enable a |
| 136 | + {+bcp+}, the {+bcp+} limits your ability to reduce backup |
| 137 | + storage costs. You can't adjust the retention or delete a |
| 138 | + backup to reduce the backup storage costs. |
| 139 | + |
| 140 | + .. step:: Apply the {+bcp+} to the project. |
| 141 | + |
| 142 | + In the :setting:`spec.backupCompliancePolicyRef` parameter in the |
| 143 | + :ref:`atlasproject-custom-resource`, specify the name and |
| 144 | + namespace of the opaque |k8s-secret| that references the |
| 145 | + :ref:`bcp-custom-resource`. |
| 146 | + |
| 147 | + **Example:** |
| 148 | + |
| 149 | + .. code-block:: sh |
| 150 | + |
| 151 | + cat <<EOF | kubectl apply -f - |
| 152 | + apiVersion: atlas.mongodb.com/v1 |
| 153 | + kind: AtlasProject |
| 154 | + metadata: |
| 155 | + name: my-project |
| 156 | + spec: |
| 157 | + backupCompliancePolicyRef: |
| 158 | + name: my-backup-compliance-policy |
| 159 | + namespace: mongodb-atlas-system |
| 160 | + EOF |
| 161 | + |
0 commit comments