---
title: "How to Take a VPS Snapshot (Console and API) · CloudSat docs"
description: "Take a point-in-time copy of a CloudSat server's disk from the console or the API, get a consistent copy of databases, and fix common errors."
url: https://cloudsat.io/docs/take-a-snapshot
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

# Take a snapshot

Take a point-in-time copy of a CloudSat server's disk from the console or the API, get a consistent copy of databases, and fix common errors.

CloudSat team Updated Nov 18, 2026 3 min read

Snapshots capture the entire disk of a server exactly as it is at one moment. Take one before an upgrade, a migration or any risky change: if something breaks, you restore it and the server is back where it was. Snapshots cost $0.0384 per GB per month, and each server keeps up to 10.

## Take a snapshot in the console

1. Click **Servers** in the sidebar and open the server.
2. Click **Snapshot** at the top of the server page, or open the **Snapshots** tab. The tab header shows how many snapshots the server holds, for example "2 of 10".
3. Type a **Snapshot name** of up to 80 characters, such as `before-php-upgrade`. Leave it empty and the console names it after the server, with the date and time.
4. Click **Take snapshot**. The console answers "Snapshot started. It appears below when ready."
5. The snapshot appears in the table with the status **Creating**. When it turns **Ready**, the **Size** column shows how many GB it holds and billing starts.

**Take snapshot** works when the server is running or off. It is disabled while the server is deploying, rebuilding, resizing or suspended.

## Get a consistent copy

The snapshot copies the disk while the server runs, so a file that is being written at that moment can be caught halfway. Most files do not mind. Databases do.

- Simplest: shut the server down from the **Power** tab, take the snapshot, wait for **Ready**, then click **Power on**.
- Without downtime: dump the database to a file first, then take the snapshot. The dump is consistent even if the live files are not:

```bash
mysqldump --single-transaction --all-databases > /root/before-upgrade.sql
sudo -u postgres pg_dumpall > /root/before-upgrade-pg.sql
```

- Or stop the database service (`systemctl stop mariadb`) and start it again once the snapshot shows **Ready**.

## See all your snapshots

The **Snapshots** page in the sidebar lists every snapshot on your account, with its server, status, size, creation date and **Monthly** cost. Its header shows the total stored, for example "48 GB stored, about $1.85 a month."

## Take a snapshot with the API

With a read and write token, send a `POST` to the server's snapshots endpoint. The `name` is optional:

```bash
curl -s -X POST https://cloudsat.io/api/v1/servers/srv_7kq2m9xw/snapshots \
  -H "Authorization: Bearer $CLOUDSAT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"nightly"}'
```

The answer has the snapshot id with the status `pending`. A `GET` on the same URL lists the server's snapshots with their size and status. See [Create and use API tokens](https://cloudsat.io/docs/api-tokens) and the [API reference](https://cloudsat.io/docs/api).

## Errors you may see

- "A server keeps up to 10 snapshots. Delete an old one first."
- "Snapshots are billed by size. Add funds to your balance first.": your balance is at zero or below. See [Add funds to your balance](https://cloudsat.io/docs/add-funds-to-your-balance).
- "Restart is already being applied. Try again once it completes.": another action is running on the server. Wait until it shows **Done** in the server's **Activity** tab. Reverse DNS, firewall and floating IP changes do not block a snapshot.
- "This server is suspended. Add funds or renew it to use it again.": the API answer for a suspended server. See [When your balance runs out](https://cloudsat.io/docs/suspension-and-grace-period).

## Delete a snapshot

On the server's **Snapshots** tab, or on the **Snapshots** page, click **Delete** next to a **Ready** snapshot and confirm. Its status shows **Deleting**, then it leaves the list and stops billing.

If a snapshot ends up **Failed**, nothing was stored: it is not billed and does not count toward the 10. Click **Delete** next to it to remove it from the list at once, then take a new one.

## Tips

- Name snapshots after the change they protect against, so you know which one to restore.
- A snapshot lives with its server: deleting the server deletes its snapshots too. Keep real backups elsewhere, as described in [Back up your data off the server](https://cloudsat.io/docs/backup-your-data).
- What it costs and the limits: [Snapshot pricing and limits](https://cloudsat.io/docs/snapshot-pricing-and-limits). Going back: [Restore a snapshot](https://cloudsat.io/docs/restore-a-snapshot).

- [Restore a snapshot](https://cloudsat.io/docs/restore-a-snapshot): Next Restore a snapshot
