# Hetzner

Automate Hetzner server snapshots on a custom schedule.

SimpleBackups connects to your Hetzner account through an API token to create and manage server snapshots automatically. This guide walks you through generating a Hetzner API token and creating your first snapshot job.

## Connect your Hetzner account to SimpleBackups

### Generate a Hetzner API token

1. Log in to your Hetzner Cloud Console
2. Navigate to **Security**, then **API Tokens**, and click **Generate API Token**

![Hetzner - API Tokens section](https://simplebackups.com/docs/docs-assets/www-notion-so/f62b738f6389a21c4913.png)

3. Select the **Read & Write** permission, enter a name for your token, and click **Generate API Token**

![Hetzner - Generate API token with Read & Write permission](https://simplebackups.com/docs/docs-assets/www-notion-so/f5e045477cd553453385.png)

**Save your token:**
The API token is displayed only once. Copy it immediately and store it securely.

![Hetzner - Copy the generated token](https://simplebackups.com/docs/docs-assets/www-notion-so/4b7eb5077a65c61e51a2.png)

### Add Hetzner as a provider in SimpleBackups

1. Go to the [**Snapshots/Create**](https://my.simplebackups.com/snapshot/create) page and click **Connect a new provider**

![SimpleBackups - Connect a new provider](https://simplebackups.com/docs/docs-assets/www-notion-so/b0b87ed50aa198da4951.png)

2. Select **Hetzner** from the **Provider** dropdown, enter a name for the connection, paste the API token, and click **Save provider**

![SimpleBackups - Hetzner provider form](https://simplebackups.com/docs/docs-assets/www-notion-so/84c1c6bb416b9bc71af0.png)

## Create a snapshot backup job

![SimpleBackups - Snapshot job form](https://simplebackups.com/docs/docs-assets/www-notion-so/dfb58ec5deb6d0b2e946.png)

1. **Account**: Choose your connected Hetzner account
2. **Resource**: Select the server you want to snapshot. The **Resource** dropdown lists all servers accessible under your Hetzner account.
3. **Retention**: Set the number of snapshots to keep. Older snapshots beyond this number are automatically rotated.
4. **Name and save**: Give your snapshot job a descriptive name and click **Create Snapshot**

![SimpleBackups - Snapshot job created](https://simplebackups.com/docs/docs-assets/www-notion-so/3957485ddcdc5d0cb971.png)

**Info:**
Hetzner snapshots do not include volumes attached to your server. This is a Hetzner limitation. To back up volume data, create a [file backup](https://simplebackups.com/docs/server-and-file-backup/overview) for the volume instead.
