Pause and Resume Archiving¶
On this page
Serverless instances are in preview and do not support this feature at this time. To learn more, see Serverless Instance Limitations.
You can pause and resume archiving from the Atlas UI and API. When you pause, previously archived documents continue to be available on the cloud object storage for querying, but archiving activity for the collection on your Atlas cluster is stopped until you resume archiving. You will continue to incur costs for storage on the cloud object storage and for reading data. When you resume archiving, data that meets the criteria for archiving is archived.
You can pause an online archive and create another online archive for the same
namespace and partition fields as the paused online archive, but only one
online archive can be Active
. So, if you try to resume a paused online
archive when another online archive for the same namespace is Active
, the
resume operation will fail. You must either delete or pause the Active
online archive to resume archiving for the paused online archive.
Pause Archiving Through the UI¶
To pause archiving, in your Atlas UI:
Navigate to the Database Deployments page for your project.¶
- If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
- If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
- If the Database Deployments page is not already displayed, click Databases in the sidebar.
Navigate to the Online Archive tab for your cluster.¶
- Click the name of the cluster.
- Click the Online Archive tab to view the list of online archives, if any, for the cluster.
Click the ellipsis (...
) in the Actions column for the online archive to display the list of allowed actions.¶
You can:
- Pause Archive (only if state is Active)
- Edit Archiving Rule
- Delete Archive
- Resume Archive (only if state is Paused)
Select Pause Archiving from the ellipsis menu to temporarily stop archiving data in the collection.¶
Resume Archiving Through the UI¶
To resume archiving, in your Atlas UI:
Navigate to the Database Deployments page for your project.¶
- If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
- If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
- If the Database Deployments page is not already displayed, click Databases in the sidebar.
Navigate to the Online Archive tab for your cluster.¶
The list of Online Archives displays.
Click the ellipsis (...
) in the Actions column for the online archive to display the list of allowed actions.¶
You can:
- Pause Archive (only if state is Active)
- Edit Archiving Rule
- Delete Archive
- Resume Archive (only if state is Paused)
Select Resume Archiving from the ellipsis menu to start archiving.¶
The Resume Archive option is only visible for online archives in Paused state.
Pausing and Resuming Through the API¶
To pause an active online archive and/or to resume a paused online archive
through the API, send a PATCH
request to the onlineArchives endpoint with the unique ID of the online
archive to pause or resume. To learn more about the API syntax and options,
see Update an Online Archive.