Restore a Serverless Instance from a Snapshot¶
Atlas lets you restore data to a serverless instance from a snapshot.
You must have the Project Owner
role for the Atlas
projects that contain the source and target clusters to restore
data from one Atlas cluster to another.
To learn more, see Serverless Instance Backups.
Restore Restrictions¶
- You can restore from only the two most recent snapshots of a serverless instance.
- You can't restore snapshots from shared clusters, dedicated clusters, or from Cloud Manager to serverless instances.
Prerequisites¶
Stop Client Operations during Restoration¶
You must ensure that the target serverless instance doesn't receive client requests during restoration. You can restore to a new serverless instance and reconfigure your application to use that new serverless instance once it is running for maximum uptime.
Atlas disables database users on a target serverless instance during a restore to prevent the target from receiving client requests.
Procedure¶
- Click Databases in the top-left corner of Atlas.
- From the Database Deployments view, click the name of your serverless instance.
- Click the Backup tab.
Select a cluster's snapshot to restore.
Click Restore.
- Follow the prompts to restore your serverless instance snapshot.
Restore your Snapshot to a serverless instance¶
Atlas deletes all existing data on the target serverless instance prior to the restore. The serverless instance is unavailable for the duration of the restore.
- Click Restore in the Actions column for the snapshot you want to restore.
From the Restore dialog, select the target serverless instance to which you want to restore.
NoteFor best possible restore performance, select a target serverless instance that belongs to:
- The same Atlas project as the snapshot.
- The same cloud provider region as the snapshot.
- Click Restore.
- Restart your application and ensure it uses the new target cluster.
View Status of Snapshot Restorations¶
Atlas provides a detailed list of completed and in-progress snapshot restorations, including when Atlas took the snapshot and the snapshot's delivery type. To view this list, from a serverless instance's Backup tab, click the Restores tab.
The Status column of the table displays the results of completed snapshots, and the progress of snapshots currently being restored.
The Status column updates as the restoration progresses on the serverless instance. When the restoration completes, the column displays the time of completion and the serverless instance to which Atlas restored the snapshot.