Restore clusters with snapshots
Warning
HCP Consul Dedicated will be retired on November 12, 2025. Learn more.
This page describes the process to create and use snapshots, which are backup files for restoring Consul servers to a previous state.
You can access a HCP Consul Dedicated cluster to interact with the /snapshot
HTTP API endpoint or the consul snapshot
CLI command. Snapshots of HCP Consul Dedicated clusters created using the API and CLI appear in HCP Consul alongside manually created snapshots.
Create a snapshot on HCP Consul
To create a snapshot of a cluster, complete the following steps:
- Sign in to the HCP Portal.
- Select the organization or project where you created the cluster.
- Click Consul.
- From the Consul Overview, click the cluster ID you want to create a snapshot for.
- Click Snapshots and then Create snapshot.
- Enter a name for the snapshot. Then, click Create snapshot.
The time it takes to create the snapshot depends on the size of the cluster. When the process is complete, the snapshot's status changes to Ready.
Restore a cluster
To restore a cluster's Consul servers from a snapshot, complete the following steps:
- Sign in to the HCP Portal.
- Select the organization or project where you created the cluster.
- Click Consul.
- From the Consul Overview, click the cluster ID you want to use to restore the cluster's state.
- Click Snapshots.
- Next to the snapshot you want to use to restore the cluster, click More (three horizontal dots) and then Restore.
- Type RESTORE in the text box to confirm. Then, click Restore snapshot.
By default, HCP creates a snapshot of the cluster before restoring it to a previous version. If you do not want a snapshot of the cluster in this state, uncheck the box before you confirm the restore.
Rename a snapshot
You can edit the name of a snapshot that appears in the list of snapshots. However, renaming a snapshot does not change the underlying UUID that was assigned to the snapshot on its creation.
To rename a snapshot, complete the following steps:
- Sign in to the HCP Portal.
- Select the organization or project where you created the cluster.
- Click Consul.
- From the Consul Overview, click the cluster ID where you took the snapshot.
- Click Snapshots.
- Next to the snapshot you want to rename, click More (three horizontal dots) and then Rename.
- Enter a new name for the snapshot. Then, click Rename snapshot.
Delete a snapshot
To delete a snapshot, complete the following steps:
- Sign in to the HCP Portal.
- Select the organization or project where you created the cluster.
- Click Consul.
- From the Consul Overview, click the cluster ID where you took the snapshot.
- Click Snapshots.
- Next to the snapshot you want to delete, click More (three horizontal dots) and then Delete.
- Type DELETE in the text box to confirm. Then, click Delete snapshot.