> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/productos/servers/how-to/how-to-snapshot-and-restore-a-server.md).

# How to Snapshot a Server and Restore It Later

A snapshot, or instant snapshot, is a capture of a server's state at a specific moment.

It lets you quickly roll back when you're about to do something risky (a system update, a software change) and want a safety net in case something goes wrong.

> #### 👍 What you get
>
> A server rollback point before an important change, and the way to revert to it in minutes if needed.

> #### 📘 A snapshot is not a backup
>
> The snapshot is a quick, temporary rollback, meant to be used before a change and deleted afterward.
>
> It does not replace the backup, which is your long-term protection. Keeping snapshots alive for too long hurts server performance.

### Before you begin

* Log in to the Plenit platform.
* Have a subscription of **Servers** with a deployed server.

> #### 🚧 Maximum three snapshots per server
>
> Each server supports up to three active VM snapshots. Delete them when you no longer need them: accumulating them fragments the data and degrades performance.

### Step 1. Access the server details page

1. Enter the subscription of **Servers** from its card.
2. Open the subsection **Servers** from the side menu, or from the Servers box of the **Overview**.
3. In the server's context menu, click **Edit**.

![Accessing the server details page from the Edit option](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-4560646de4f0615fafe71fbacfce1a01a947d795%2FCAPTURA%201%20%C2%B7%20men%C3%BA%20contextual%20del%20servidor%20con%20la%20opci%C3%B3n%20Editar.jpg?alt=media)

### Step 2. Create the snapshot

With the details page open, it is recommended to **shut down the machine** before capturing. It is not mandatory, but taking the snapshot with the server shut down ensures data consistency.

1. Shut down the server and wait for confirmation.
2. Open the **Snapshot** option from the top menu.
3. Enter a **name** for the snapshot (in the example, `sysprep`) and click **Continue**.

The platform indicates that the snapshot is being created and, when it finishes, you'll see it in the **VM Snapshot** tab of the details page. Then you can turn the machine back on and make your changes with a safety net.

![Creating the snapshot with its name from the server details page](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-cb4d83b41f3815f99f0943df9ce75c3f4f92f724%2FCAPTURA%202%20%C2%B7%20opci%C3%B3n%20Snapshot%20del%20men%C3%BA%20superior%20y%20el%20campo%20de%20nombre%20de%20la%20instant%C3%A1nea.jpg?alt=media)

> #### 📘 If you can't shut it down, ensure consistency
>
> For database-backed workloads, capturing while running can leave the data incomplete. If you can't shut it down, stop the service just before the snapshot and resume it afterward.

> In Windows, from PowerShell as administrator:
>
> ```powershell
> Stop-Service -Name "MSSQLSERVER"
> ```
>
> In Linux:
>
> ```shell
> sudo systemctl stop <service>
> ```

### Step 3. Restore the server from the snapshot

1. Go back to the server details page and open the **VM Snapshot**.
2. Select the snapshot you want and click **Revert**.
3. Confirm. The server returns to the state saved in that snapshot.

![Server restoration with the Revert button from Snapshot VM](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2Fgit-blob-464947faa4bd86e9a188a54f0cd161631cfded04%2FCAPTURA%203%20%C2%B7%20pesta%C3%B1a%20Snapshot%20VM%20con%20el%20bot%C3%B3n%20Revertir%20y%20la%20confirmaci%C3%B3n.jpg?alt=media)

> #### 🚧 Reverting discards everything after it
>
> When you revert, the server returns exactly to the snapshot state: anything changed afterward is lost.
>
> Make sure that's what you want before accepting.

### Best practices

* Create the snapshot **just before** the change, not days before.
* **Delete it** as soon as you verify the change went well.
* Don't use snapshots as a backup: that's what backups are for.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.plenit.com/docs-en/productos/servers/how-to/how-to-snapshot-and-restore-a-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
