Snapshot or restore your directory - AWS Directory Service
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Snapshot or restore your directory

AWS Directory Service provides the ability to take manual snapshots of data for your AWS Managed Microsoft AD directory. 这些快照可以用于为目录执行时间点还原。无法拍摄 AD Connector 目录的快照。

注意

Snapshot is a global feature of AWS Managed Microsoft AD. 如果正在使用 多区域复制,则必须在主区域中执行以下过程。这些更改将自动应用于所有复制的区域。有关更多信息,请参阅全球与区域 功能

Creating a snapshot of your directory

A snapshot can be used to restore your directory to what it was at the point in time that the snapshot was taken. 要创建目录的手动快照,请执行以下步骤。

注意

对于每个目录,限制为 5 个手动快照。如果已达到此限制,必须先删除一个现有手动快照才能创建另一个快照。

创建手动快照

  1. AWS Directory Service console 导航窗格中,选择 Directories (目录).

  2. On the Directories page, choose your directory ID.

  3. On the Directory details page, do one of the following:

    • If you have multiple Regions showing under Multi-Region replication, select the primary Region, and then choose the Maintenance tab. 有关更多信息,请参阅 主要区域与附加区域.

    • If you do not have any Regions showing under Multi-Region replication, choose the Networking & security tab.

  4. In the Snapshots section, choose Actions, and then select Create snapshot.

  5. In the Create directory snapshot dialog box, provide a name for the snapshot, if desired. When ready, choose Create.

Depending on the size of your directory, it may take several minutes to create the snapshot. 快照准备就绪之后,Status 值更改为 Completed.

Restoring your directory from a snapshot

从快照还原目录等效于将目录移动回到以前的时间。Directory snapshots are unique to the directory they were created from. A snapshot can only be restored to the directory from which it was created. 此外,手动快照支持的最长期限为 180 天。For more information, see Useful shelf life of a system-state backup of Active Directory on the Microsoft website.

警告

We recommend that you contact the AWS Support Center before any snapshot restore; we may be able to help you avoid the need to do a snapshot restore. 任何快照还原都会导致数据丢失,因为它们是一些时间点。It is important you understand that all of the DCs and DNS servers associated with the directory will be offline until the restore operation has been completed.

要从快照还原目录,请执行以下步骤。

从快照还原目录

  1. AWS Directory Service console 导航窗格中,选择 Directories (目录).

  2. On the Directories page, choose your directory ID.

  3. On the Directory details page, do one of the following:

    • If you have multiple Regions showing under Multi-Region replication, select the Region where you want to restore your snapshot, and then choose the Maintenance tab. 有关更多信息,请参阅 主要区域与附加区域.

    • If you do not have any Regions showing under Multi-Region replication, choose the Networking & security tab.

  4. In the Snapshots section, select a snapshot in the list, choose Actions, and then select Restore snapshot.

  5. Review the information in the Restore directory snapshot dialog box, and choose Restore.

For an AWS Managed Microsoft AD directory, it can take from two to three hours for the directory to be restored. When it has been successfully restored, the Status value of the directory changes to Active. Any changes made to the directory after the snapshot date are overwritten.

删除快照

如何删除快照

  1. AWS Directory Service console 导航窗格中,选择 Directories (目录).

  2. On the Directories page, choose your directory ID.

  3. On the Directory details page, do one of the following:

    • If you have multiple Regions showing under Multi-Region replication, select the Region where you want to delete your snapshot, and then choose the Maintenance tab. 有关更多信息,请参阅 主要区域与附加区域.

    • If you do not have any Regions showing under Multi-Region replication, choose the Networking & security tab.

  4. In the Snapshots section, choose Actions, and then select Delete snapshot.

  5. Verify that you want to delete the snapshot, and then choose Delete.