# Back up and restore your game server
A backup is a snapshot of your server's whole data volume at one moment: worlds, configs, mods, plugins and everything else in its files. You can roll the server back to it later.

Open the server and pick **Backups** in the side menu.

## Take a backup

1. Click **Back up now**.
2. Optionally type a name under **Name (optional)**, such as `before-1.21-update` (up to 64 characters: letters, numbers, spaces, hyphens, underscores and dots). Leave it blank and the backup is named after the date and time.
3. Click **Start backup**.

The backup shows **In progress** and then **Ready**. Only a **Ready** backup can be restored. If one ends as **Failed**, delete it and try again.

:::tip{title="Save the world first"}

A backup taken while the server runs captures the files as they are on disk at that moment. On Minecraft, run `save-all` in **Console** just before, or stop the server, so the world is fully written.

:::

A server keeps up to 10 backups. The page shows how many you have, for example `4 of 10 backups in use`. When all 10 are used, you have to delete one before you can take a new one. You cannot start a backup while another backup or a restore is running.

## Back up automatically

Backups are not taken for you until you turn them on. In the **Automatic backups** card on **Backups**:

1. Turn on **Take a backup every day**.
2. Under **Time of day**, pick the hour. Times are shown in UTC.
3. Under **Keep**, choose how many automatic backups to keep, from **The last 1** to **The last 7**.
4. Click **Save**.

The card then shows **Next backup** and, once one has run, **Last automatic backup**. Automatic backups are marked **Automatic** in the list, and the ones you take yourself **Manual**.

- When there are more automatic backups than you chose to keep, the oldest automatic ones are deleted.
- Backups you take yourself are never deleted automatically.
- Automatic backups count toward the limit of 10. When the limit is reached, that day's automatic backup is skipped, so delete old manual backups now and then.

## Restore a backup

:::danger{title="A restore replaces everything since the backup"}

Restoring puts the whole server back to the moment the backup was taken. **Everything that changed after it is lost**: world progress, new player data, config edits, uploaded files. A restore cannot be undone. To keep what you have now, back up first and then restore.

:::

1. On the backup's row, click **Restore**.
2. Read the summary in **Restore this backup?**: your server stops, all of its current data is replaced with the data in the backup, and it starts again by itself when the restore finishes.
3. Click **Restore and replace data** to confirm.

While it runs, the server page shows **Restoring a backup since** and the time it started. Until it finishes you cannot start, stop or restart the server, or save changes to its setup or SFTP. The buttons turn back on by themselves when it finishes. A restore takes a few minutes, longer on big servers.

## Delete a backup

Click **Delete** on its row and confirm with **Delete**. The backup is deleted for good and can no longer be restored. Your server and its current data are not affected.

## Keep a copy somewhere else

Backups are stored with the server and are removed if the server is deleted. There is no download button for a backup. To keep a copy on your own computer, download the server's files over SFTP, or compress them in the file manager and download the archive. See [Manage your server files and connect over SFTP](/game-servers/files-and-sftp).

## Frequently asked questions

<details>
  <summary>Can I restore just one file or just the world?</summary>

No, a restore always replaces the whole server. To get one file back, take a backup of the current state first, restore the old backup, download the file you need, restore the backup you just took, and upload the file again.

</details>

<details>
  <summary>Does a backup include the server's settings and plan?</summary>

It includes everything in the server's files, such as `server.properties`, `server.cfg`, mods and worlds. Your plan, the game version chosen in **Configuration**, ports and addresses are not part of a backup and do not change when you restore.

</details>

<details>
  <summary>I need a backup from before my earliest one.</summary>

Only the backups listed on **Backups** can be restored. To have older restore points in future, turn on **Automatic backups** and keep up to 7 of them.

</details>
