> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/databases/in-memory-db/overview/backup-recovery.md).

# Backup and Recovery

## In-Memory DB v2

<code class="expression">space.vars.ionos\_cloud</code> DBaaS for In-Memory DB v2 replaces fixed daily backups with configurable snapshots. You can set:

* **Location:** The Object Storage region where snapshots are stored. For added data safety, use a location different from the cluster's own region.
* **Retention days:** The number of days snapshots are retained before being automatically deleted, from 1 to 365 days (default: 7). Reducing this value purges any existing snapshots that fall outside the new retention window.
* **Snapshot hours:** One or more hours of the day (UTC) at which snapshots are taken. At least one hour must be specified.

Snapshots can only be used to restore data into a **new** cluster, during cluster creation. There is no in-DCD option to restore an existing cluster's data in place; that is only possible through the v2 API's `restoreFromSnapshot` property. For more information, see [<mark style="color:blue;">Restore an In-Memory DB Cluster</mark>](/cloud/databases/in-memory-db/how-tos/v2/restore-in-memory-db-cluster.md).

## In-Memory DB v1

<code class="expression">space.vars.ionos\_cloud</code> DBaaS for In-Memory DB supports automatic backups. Automatic backups are created in either of the following instances:

* During the creation of an In-Memory DB instance.
* Upon upgrading the current version of In-Memory DB to a higher version.

<code class="expression">space.vars.ionos\_cloud</code> DBaaS performs automatic daily full backups of the In-Memory DB instances that run regularly at a specific hour based on the value set in the DBaaS component. It ensures that there is a backup available for each day. <code class="expression">space.vars.ionos\_cloud</code> maintains backups for the last seven days so that you can recover them for up to a week. For more information about backup restoration, see [<mark style="color:blue;">View individual cluster details and restore a backup</mark>](/cloud/databases/in-memory-db/how-tos/v1/view-in-memory-db-clusters.md#view-individual-cluster-details-and-restore-a-backup).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/databases/in-memory-db/overview/backup-recovery.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
