|
| 1 | +--- |
| 2 | +title: Restore your dev box from a snapshot |
| 3 | +description: Learn how to restore your dev box from a snapshot in Microsoft Dev Box to recover from critical issues. |
| 4 | +author: RoseHJM |
| 5 | +ms.author: rosemalcolm |
| 6 | +ms.service: dev-box |
| 7 | +ms.topic: article |
| 8 | +ms.date: 02/10/2025 |
| 9 | + |
| 10 | +#customer intent: As a developer, I want to restore my dev box from a snapshot so that I can perform testing, or quickly recover from critical issues. |
| 11 | +--- |
| 12 | + |
| 13 | +# Restore your dev box from a snapshot |
| 14 | + |
| 15 | +In this article, you restore your dev box to a previous state by using a snapshot. Snapshots are point-in-time copies of your dev box that allow you to revert to a previous state if needed. Microsoft Dev Box automatically takes snapshots of your dev box, ensuring that you have recent restore points available. |
| 16 | + |
| 17 | +You can restore your dev box from a snapshot to overcome critical issues, recover lost data, or fix corruption, ensuring minimal downtime and maximum productivity. |
| 18 | + |
| 19 | +You can also use snapshots during the testing phase of a project. If you're testing new code or configurations and something goes wrong, restoring from a snapshot allows you to return to a known good state without losing progress or spending time troubleshooting the issue. |
| 20 | + |
| 21 | +Dev Box takes snapshots automatically every 12 hours. Dev Box retains the last 10 snapshots for each dev box and overwrites the oldest snapshot when necessary. You can restore your dev box to any of the last 10 snapshots. |
| 22 | + |
| 23 | +## Prerequisites |
| 24 | + |
| 25 | +| **Product** | **Requirements** | |
| 26 | +|-------------------|-------------------| |
| 27 | +| **Microsoft Dev Box** | - Access to a dev box in the developer portal | |
| 28 | + |
| 29 | +## Restore your dev box from a snapshot |
| 30 | + |
| 31 | +1. Sign in to the [developer portal](https://aka.ms/devbox-portal). |
| 32 | + |
| 33 | +1. On the dev box that you want to restore, select the actions menu, and then select **Restore**. |
| 34 | + |
| 35 | + :::image type="content" source="media/how-to-restore-from-snapshot/dev-box-actions-menu-restore.png" alt-text="Screenshot of the developer portal, showing the actions menu for a dev box with the Restore option highlighted."::: |
| 36 | + |
| 37 | +1. Read the information about the effect of restoring your dev box. The restore process deletes data and apps added since the snapshot you choose to restore was taken. The restore process can take hours. Select **Yes, I want to restore this dev box** to confirm. |
| 38 | + |
| 39 | + :::image type="content" source="media/how-to-restore-from-snapshot/dev-box-confirm-restore.png" alt-text="Screenshot of the developer portal, showing the Restore dialog box with the Restore to list highlighted."::: |
| 40 | + |
| 41 | +1. Select the desired restore point from the list of available snapshots. |
| 42 | + |
| 43 | + :::image type="content" source="media/how-to-restore-from-snapshot/dev-box-select-restore-point.png" alt-text="Screenshot of the developer portal, showing the Restore dialog box with Yes, I want to restore this dev box highlighted."::: |
| 44 | + |
| 45 | +1. You can check the progress of the restore operation on the dev box tile in the developer portal. |
| 46 | + |
| 47 | + :::image type="content" source="media/how-to-restore-from-snapshot/dev-box-restore-progress.png" alt-text="Screenshot of the developer portal, showing a dev box tile with the message Restoring dev box."::: |
| 48 | + |
| 49 | +1. When the restoration is complete, you receive an email notification informing you that your dev box is restored and ready to use. |
| 50 | + |
| 51 | + :::image type="content" source="media/how-to-restore-from-snapshot/dev-box-restore-email.png" alt-text="Screenshot of an email notification informing you that your dev box is restored and ready to use."::: |
| 52 | + |
| 53 | +## Related content |
| 54 | + |
| 55 | +- [Manage a dev box by using the Microsoft Dev Box developer portal](how-to-create-dev-boxes-developer-portal.md) |
0 commit comments