> This page is for Data Protection.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.eon.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.eon.io/_mcp/server.

# Compute Engine: Restore SQL Server VM Instances

If data was deleted or changed by mistake, you can bring the databases of a SQL Server VM instance on Compute Engine back to the moment before it happened.
The console shows these instances as **SQL Virtual Machine**.
The restore uses point-in-time restore (PiTR) backups, creates a new instance, and leaves the original unchanged.

This article explains how to restore a SQL Server VM instance's databases to a point in time in the Eon console.
During the restore, Eon runs a temporary restore server that's billed in your restore project.
For how the restore works, see [How Eon Restores SQL Server VM Instances].

## Restore the databases to a point in time

#### Before you start

Before you restore the databases, make sure:

* A [restore account has been connected] to your Eon account.

* The GCP restore project has a VPC and subnet that meet [restore server connectivity requirements].
  By default, Eon uses the default VPC and subnet, but you can [customize the restore server connectivity] if needed.

[restore account has been connected]: /data-protection/restoring/restore-accounts/about-restore-accounts

[restore server connectivity requirements]: /data-protection/restoring/restore-accounts/about-restore-accounts#the-restore-server-and-its-network-connectivity

[customize the restore server connectivity]: /data-protection/cloud-workloads/gcp/restore-projects/gcp-customize-restore-server-configuration

* The SQL Server VM instance is protected by a PiTR backup policy and has recovery points for the time you want to restore to.
  For setup, see [Set up PiTR backups for SQL Server VM instances].

* The instance's SQL Server setup is supported for restore.
  For the limits, see [SQL Server VM instance restores].

* Every disk that holds database files is part of the instance backup.
  Otherwise, the restore ends [Partially complete](#partially-complete-restores).

#### Choose the recovery point

1. In your

   inventory

   , select the SQL Server VM instance you want to restore.

2. Click the **Eon snapshots** tab, and then select the day you want to restore from.

3. Click the **Database PiTR** tab.

4. Each vault that holds recovery points for the day has its own row, labeled after **Stored in**.
   The restore uses the snapshots in the vault of the row you pick, so find the row for the vault you want to restore from.
   If no vault has recovery points for that day, pick another day.

5. In that row, choose the time to restore to:

   * To restore to the latest point of the day, select **Latest available**.
     On a day before the last day of the PiTR window, this button reads **Latest in this day**.

   * To restore to a particular moment, select **Specific time**, and then set the hours, minutes, and seconds in that row.

6. Click **Restore** in that row.

#### Choose the restore account

Choose the restore account and the GCP project you want to restore to, and then click **Next**.

#### Set the instance details

Set the details of the new instance.

1. Set the **Machine name**.

2. Choose a **Region** and **Zone** to deploy the new instance to.
   The temporary restore server runs in the same zone.

3. Choose the **Machine type**.

4. Choose a VPC **Network** and **Subnetwork**.

5. To keep the labels that were present when the snapshot was taken, turn **Keep original labels** on.
   Otherwise, turn it off.

   In both cases, the new instance is labeled with `eon-restore=true`.
   Labels with the `eon-` prefix aren't included in the original labels because Eon uses this prefix for internal operations.

6. To start the instance automatically after the restore, turn **Start instance after restore** on.
   To leave it stopped, turn it off.

7. To specify an internal IP address, turn **Assign internal IP automatically** off and enter an **Internal IP address** within the selected subnet.
   Otherwise, leave the switch on to assign an available address automatically.

8. Click **Next**.

#### Set details for the attached disks

In this step of the wizard, you'll set encryption, disk settings, and labels for the disks attached to the instance.
Expand individual disks to show disk-specific settings.

#### Encryption

You can encrypt all disks with the same customer-managed encryption key (CMEK), or you can set each disk's key separate from the other disks.
If you choose to encrypt each disk separately, turn off **Encrypt all disks with the same key**.
Encryption settings are then displayed for each disk.

#### Disk settings

For each disk, you can keep the original disk settings, or you can customize the drive's name, type, and size, and, for disk types that support them, IOPS and throughput.

#### Labels

Each disk has its own labels, independent of the instance-level labels in the previous step.
To set labels on a disk, turn **Keep original labels** off and add them.

Eon also labels each restored disk with `eon-restore=true`.

**Temporary restore server**: The temporary restore server's disks use the key you chose for the restored disks.
If you set a key for each disk, it uses the key of one of them.

#### Start and follow the restore job

Click **Restore** to start the asynchronous restore job.

You can follow the job, which has the type **SQL VM point-in-time restore**, on the

Restore jobs tab

in the Jobs page.

When the job completes, the restored instance is available in the restore project and zone you chose.
If the database recovery fails or you cancel the restore, Eon deletes the disks it restored.
If Eon can't create the instance after the recovery, it keeps the disks, because they hold the recovered databases.
If the job fails, contact [Eon Support](/data-protection/support) with the job ID.

#### Partially complete restores

A restore ends **Partially complete** when some databases come back at a different point than the time you chose, or can't be opened.
Eon still creates the new instance, and the job's output lists the databases in each case, though it might show only part of a long list.
The cases are:

* **Files not found**: The database's files are on a disk that isn't part of the instance backup, so the restored instance can't open the database.

* **Not at the time you chose**: Eon restores these databases to the nearest point their backups allow.
  They include databases that use the bulk-logged recovery model when bulk-logged operations in a log backup are in the way, and databases whose log backups end before the time you chose.

* **As of the instance backup**: These databases are as they were at the time of the instance backup.
  They include databases that aren't in the PiTR backup, for example databases that use the simple recovery model, which only the instance backup protects, and databases the restore server can't open.
  Databases that use transparent data encryption (TDE) don't get point-in-time restore.
  Eon restores them as of the instance backup.

For how Eon treats each recovery model, see [SQL Server VM instances] in the backup support notes.
For what the **Partially complete** status means, see [Restore Job Statuses].

## Next steps

* [Set up PiTR backups for SQL Server VM instances]: Add the restored instance, which is a new resource, to a PiTR backup policy and complete its configuration.

## See also

* [Compute Engine: Restore a VM]

* [About Restore Accounts]

* [GCP: Restore Server Requirements]

[Compute Engine: Restore a VM]: /data-protection/restoring/restore-cloud-workloads/gcp/compute-engine/compute-engine-restore-a-vm

[About Restore Accounts]: /data-protection/restoring/restore-accounts/about-restore-accounts

[GCP: Restore Server Requirements]: /data-protection/cloud-workloads/gcp/restore-projects/gcp-restore-server-requirements

[Restore Job Statuses]: /data-protection/restoring/restore-job-statuses

[How Eon Restores SQL Server VM Instances]: /data-protection/cloud-workloads/gcp/resources/compute-engine/sql-server-vm-instances/how-eon-restores-sql-server-vm-instances

[Set up PiTR backups for SQL Server VM instances]: /data-protection/cloud-workloads/gcp/resources/compute-engine/sql-server-vm-instances/set-up-pitr-backups-for-sql-server-vm-instances

[SQL Server VM instance restores]: /data-protection/cloud-workloads/gcp/resources/compute-engine/sql-server-vm-instances/support-notes#restore-support-notes

[SQL Server VM instances]: /data-protection/cloud-workloads/gcp/resources/compute-engine/sql-server-vm-instances/support-notes#backup-support-notes