对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

管理备份快照

注意

本页面同时适用于 Atlas Infinite 和 Atlas Core。

虽然大多数 Atlas 快照操作都是根据备份策略自动执行的,但您还可以:

  • 查看快照

  • 手动删除快照

  • 在计划备份之间启动按需快照。

要查看备份快照,您必须至少拥有该项目的Project Backup Creator或Project Read Only访问权限。拥有Organization Owner访问权限的用户必须先将自己添加为项目的Project Read Only访问权限,然后才能查看备份策略。

要拍摄或删除备份快照,您必须对项目具有 Project Backup Creator、Project Backup Manager 或 Project Owner 访问权限。拥有Organization Owner访问权限的用户必须将自己添加为项目的Project Backup Creator、Project Backup Manager或Project Owner访问权限,然后才能拍摄或删除备份快照。

注意

如果已启用备份合规策略,则无法删除备份快照。

您可以使用Atlas CLI、 Atlas Administration API或Atlas用户界面删除快照。要删除受多区域快照分布策略影响的快照的所有副本而不删除策略本身,请从其原始地区中删除快照。

警告

删除快照后不可恢复。您无法恢复已删除的快照。

要删除使用 Atlas CLI 指定的备份快照,请运行以下命令:

atlas backups snapshots delete <snapshotId> [options]

To learn more about the command syntax and parameters, see the Atlas CLI documentation for atlas backups snapshots delete.

通过上述任何方法删除原始快照都会将删除操作传播到该快照的所有副本。

要使用Atlas CLI列出项目和集群的云备份快照,请运行以下命令:

atlas backups snapshots list <clusterName> [options]

要使用Atlas CLI返回指定快照的详细信息,请运行以下命令:

atlas backups snapshots describe <snapshotId> [options]

要详细了解前述命令的语法和参数,请参阅关于 atlas backups snapshot list 和 atlas backups snapshots describe 的 Atlas CLI 文档。

提示

请参阅:相关链接

默认情况下,Atlas 同时显示按需快照和基于策略的快照。要只查看基于策略的快照,请执行以下操作:

  1. PolicyView Snapshots by单击 。

    或者,单击On-demand以仅显示通过单击Take Snapshot Now拍摄的快照。

根据您的备份策略拍摄的快照会在Frequency列中显示生成快照的策略项的频率: Yearly 、 Monthly 、 Weekly 、 Daily或Hourly 。

注意

如果重叠的策略项生成相同的快照,Atlas 会将快照与保留时间最长的策略项关联起来。

示例,如果该策略指定每日快照保留两天,每周快照每周六保留三周,则Atlas会在 Snapshots 页面的 Frequency 列中显示频率为 Weekly周六拍摄的快照,并将快照保留三周。这是因为每周策略项的保留时间比每日策略项的保留时间长。

您可以在 Atlas UI 中更改区域的名称。如果对区域进行重命名,旧快照的工具提示区域名称不会被重命名。

Atlas takes on-demand snapshots immediately, unlike scheduled snapshots which occur at regular intervals. If there is already an on-demand snapshot with a status of queued or inProgress, you must wait until Atlas has completed the on-demand snapshot before taking another. If there is already a scheduled snapshot with a status of queued or inProgress, you may queue an on-demand snapshot.

注意

如果您启用了备份合规策略,并为按需快照指定了保留时间,则在拍摄按需快照后,您将无法缩短其保留时间。

您必须具有Organization Owner或Project Owner角色才能成功调用这些端点。

要使用 Atlas CLI 为项目和集群创建备份快照,请运行以下命令:

atlas backups snapshots create <clusterName> [options]

要使用 Atlas CLI 监视特定备份快照是否可用,请运行以下命令:

atlas backups snapshots watch <snapshotId> [options]

To learn more about the syntax and parameters for the previous commands, see the Atlas CLI documentation for atlas backups snapshots create and atlas backups snapshots watch.

提示

请参阅:相关链接