Skip to content

Commit 180e38c

Browse files
authored
(DOCSP-37332) Changes configuration file template (#278) (#280)
1 parent a3f56d1 commit 180e38c

File tree

1 file changed

+46
-207
lines changed

1 file changed

+46
-207
lines changed

source/reference/json/cloud-backup-schedule-config-file.txt

Lines changed: 46 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -10,218 +10,57 @@ Cloud Backup Schedule Configuration File
1010
:depth: 1
1111
:class: singlecol
1212

13-
You can use a cloud backup schedule configuration file to specify the
14-
settings required when you `update a cloud backup schedule
15-
<https://www.mongodb.com/docs/atlas/cli/stable/command/atlas-backups-schedule-update/>`__
16-
using the {+atlas-cli+}. The {+atlas-cli+} accepts ``.json`` cloud
17-
backup schedule configuration files.
13+
.. facet::
14+
:name: genre
15+
:values: tutorial
16+
17+
.. To create a configuration file doc, copy this template, change
18+
.. the replacements below, and update the H1 title and refs.
19+
20+
.. |atlas-cli command| replace:: :ref:`atlas-backups-schedule-update`
21+
.. |configuration-file-name| replace:: cloud backup schedule configuration
22+
.. |openapi-link| replace:: :oas-atlas-tag:`Update Cloud Backup Schedule for One Cluster </Cloud-Backups/operation/updateBackupSchedule>`
23+
.. |action| replace:: update a cloud backup schedule
24+
25+
You can use a |configuration-file-name| file to specify the
26+
settings required when you |action|
27+
using the {+atlas-cli+}. The {+atlas-cli+} accepts ``.json``
28+
|configuration-file-name| files.
1829

1930
.. _cloud-backup-schedule-settings:
2031

21-
Cloud Backup Schedule Settings
22-
------------------------------
23-
24-
You can specify the following settings to update a cloud
25-
backup schedule either in the configuration file or as flags in the
26-
command:
27-
28-
.. list-table::
29-
:header-rows: 1
30-
:widths: 20 10 70
31-
32-
* - Field
33-
- Type
34-
- Description
35-
36-
* - ``autoExportEnabled``
37-
- boolean
38-
- Flag that indicates whether |service| automatically exports
39-
cloud backup snapshots to the |aws| bucket.
40-
41-
* - ``copySettings``
42-
- array
43-
- List that contains a document for each copy setting item in the
44-
desired backup policy.
45-
46-
* - | ``copySettings.``
47-
| ``cloudProvider``
48-
- string
49-
- Human-readable label that identifies the cloud provider that
50-
stores the snapshot copy.
51-
52-
* - | ``copySettings.``
53-
| ``frequencies``
54-
- array of strings
55-
- List that describes which types of snapshots to copy.
56-
57-
* - | ``copySettings.``
58-
| ``regionName``
59-
- string
60-
- Target Atlas region to copy snapshots belonging to ``replicationSpecId``
61-
to. Please supply the **Atlas Region** that corresponds to your
62-
:ref:`AWS <amazon-aws>`, :ref:`GCP <google-gcp>` or :ref:`Azure
63-
<microsoft-azure>` region.
64-
65-
* - | ``copySettings.``
66-
| ``replicationSpecId``
67-
- string
68-
- Unique 24-hexadecimal digit string that identifies the
69-
replication object for a zone in a cluster. For global clusters,
70-
there can be multiple zones to choose from. For sharded clusters
71-
and replica set clusters, there is only one zone in the cluster.
72-
To find ``thereplicationSpecId``, do a GET request to
73-
:oas-atlas-op:`Return One Cluster in One Project
74-
</getLegacyCluster>` and consult its ``replicationSpecs`` array.
75-
76-
* - | ``copySettings.``
77-
| ``shouldCopyOplogs``
78-
- boolean
79-
- Flag that indicates whether to copy the oplogs to the target
80-
region. You can use the oplogs to perform point-in-time restores.
81-
82-
* - ``deleteCopiedBackups``
83-
- array
84-
- List that contains a document for each copy setting item in the
85-
desired backup policy.
86-
87-
* - | ``deleteCopiedBackups.``
88-
| ``cloudProvider``
89-
- string
90-
- Human-readable label that identifies the cloud provider for the
91-
deleted copy setting whose backup copies you want to delete.
92-
93-
* - | ``deleteCopiedBackups.``
94-
| ``regionName``
95-
- string
96-
- Target Atlas region to copy snapshots belonging to ``replicationSpecId``
97-
to. Please supply the **Atlas Region** that corresponds to your
98-
:ref:`AWS <amazon-aws>`, :ref:`GCP <google-gcp>` or :ref:`Azure
99-
<microsoft-azure>` region.
100-
101-
* - | ``deleteCopiedBackups.``
102-
| ``replicationSpecId``
103-
- string
104-
- Unique 24-hexadecimal digit string that identifies the
105-
replication object for a zone in a cluster. For global clusters,
106-
there can be multiple zones to choose from. For sharded clusters
107-
and replica setclusters, there is only one zone in the cluster.
108-
To find ``thereplicationSpecId``, do a GET request to
109-
:oas-atlas-op:`Return One Cluster in One Project
110-
</getLegacyCluster>` and consult its ``replicationSpecs`` array.
111-
112-
* - ``export``
113-
- object
114-
- List that contains a document for each copy setting item in the
115-
desired backup policy.
116-
117-
* - | ``export.``
118-
| ``exportBucketId``
119-
- string
120-
- Unique 24-hexadecimal character string that identifies the |aws|
121-
Bucket.
122-
123-
* - | ``export.``
124-
| ``frequencyType``
125-
- string
126-
- Human-readable label that indicates the rate at which the export
127-
policy item occurs.
128-
129-
* - ``policies``
130-
- array
131-
- Rules set for this backup schedule.
132-
133-
* - | ``policies.``
134-
| ``id``
135-
- string
136-
- Unique 24-hexadecimal digit string that identifies this backup
137-
policy.
138-
139-
* - | ``policies.``
140-
| ``policyItems``
141-
- array
142-
- List that contains the specifications for one policy.
143-
144-
* - | ``policies.``
145-
| ``policyItems.``
146-
| ``frequencyInterval``
147-
- integer
148-
- Number that indicates the frequency interval for a set of
149-
snapshots. A value of ``1`` specifies the first instance of the
150-
corresponding ``frequencyType``.
151-
152-
- In a monthly policy item, ``1`` indicates that the monthly
153-
snapshot occurs on the first day of the month and ``40``
154-
indicates the last day of the month.
155-
156-
- In a weekly policy item, ``1`` indicates that the weekly
157-
snapshot occurs on Monday and ``7`` indicates Sunday.
158-
159-
- In an hourly policy item, you can set the frequency interval to
160-
``1``, ``2``, ``4``, ``6``, ``8``, or ``12``. For hourly policy
161-
items for NVMe clusters, |service| only accepts ``12`` as
162-
the frequency interval value.
163-
164-
* - | ``policies.``
165-
| ``policyItems.``
166-
| ``frequencyType``
167-
- string
168-
- Human-readable label that identifies the frequency type
169-
associated with the backup policy.
170-
171-
* - | ``policies.``
172-
| ``policyItems.``
173-
| ``retentionUnit``
174-
- string
175-
- Unit of time in which |service| measures snapshot retention.
176-
177-
* - | ``policies.``
178-
| ``policyItems.``
179-
| ``retentionValue``
180-
- integer
181-
- Duration in days, weeks, or months that |service| retains the
182-
snapshot. For less frequent policy items, |service| requires
183-
that you specify a value greater than or equal to the value
184-
specified for more frequent policy items.
185-
186-
For example: If the hourly policy item specifies a retention of two
187-
days, you must specify two days or greater for the retention of the
188-
weekly policy item.
189-
190-
* - ``referenceHourOfDay``
191-
- integer
192-
- Hour of day in Coordinated Universal Time (UTC) that represents
193-
when |service| takes the snapshot.
194-
195-
* - ``referenceMinuteOfHour``
196-
- integer
197-
- Minute of the ``referenceHourOfDay`` that represents when
198-
|service| takes the snapshot.
199-
200-
* - ``restoreWindowDays``
201-
- integer
202-
- Number of previous days that you can restore back to with
203-
continuous cloud backup accuracy. You must specify a positive,
204-
non-zero integer. This parameter applies to continuous cloud
205-
backups only.
206-
207-
* - ``updateSnapshots``
208-
- boolean
209-
- Flag that indicates whether to apply the retention changes in the
210-
updated backup policy to snapshots that |service| took
211-
previously.
212-
213-
* - ``useOrgAndGroupNamesInExportPrefix``
214-
- boolean
215-
- Flag that indicates whether to use organization and project names
216-
instead of organization and project UUIDs in the path to the
217-
metadata files that |service| uploads to your |aws| bucket.
32+
Available Settings
33+
------------------
34+
35+
When you |action| using a configuration file, you
36+
can specify any settings that are listed in
37+
|openapi-link| under :guilabel:`Request Body Schema`.
21838

21939
.. _example-cloud-backup-schedule-config-file:
22040

221-
Example Cloud Backup Schedule Configuration File
222-
------------------------------------------------
41+
Create a Configuration File
42+
---------------------------
43+
44+
Follow these steps to |action| with a configuration file:
45+
46+
.. procedure::
47+
:style: normal
48+
49+
.. step:: Copy the sample request for |openapi-link|.
50+
51+
a. Navigate to the |openapi-link|
52+
section of the |service| Admin API specification.
53+
b. Under :guilabel:`Request samples` on the right side, click
54+
:guilabel:`Expand all`.
55+
c. Click :guilabel:`Copy` to copy the sample request.
56+
57+
.. step:: Create the configuration file.
58+
59+
a. Paste the copied sample request into a text editor and change
60+
the values to reflect your values.
61+
b. Save the file with a ``.json`` extension.
22362

224-
To update a cloud backup schedule for a single cluster, specify the
225-
fields you want to update as shown in the following example file:
63+
.. step:: Run the |atlas-cli command| command with
64+
the ``--file`` option.
22665

227-
.. literalinclude:: /includes/update-cloud-backup-schedule-config-file.json
66+
Specify the path to the file you saved with the ``--file`` flag.

0 commit comments

Comments
 (0)