# Backup and restore

## Creating a snapshot <a href="#id-0-toc-title" id="id-0-toc-title"></a>

Create a [snapshot ](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html)of an RDS.

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Database**.
2. In the **RDS** tab, in the row containing your RDS instance, click the **Actions** menu icon ( <img src="/files/7DagHksotNef8625xoXr" alt="" data-size="line"> ) and select **Backup & Restore** -> **Create Snapshot**.
3. **Confirm** the snapshot request. Once taken, the snapshot displays in the **Snapshot** tab.

<figure><img src="/files/NgpsVfctqcN3vycl9ItY" alt=""><figcaption><p><strong>RDS</strong> Tab with <strong>Actions</strong> menu for <strong>DUPLODEV01-DOCS</strong> instance with <strong>Create Snapshot</strong> option highlighted</p></figcaption></figure>

## Restoring a snapshot <a href="#id-1-toc-title" id="id-1-toc-title"></a>

Once backups are available, you can restore them on the next instance creation when you [create an RDS](/docs/automation-platform/overview/aws-services/database/rds-database.md#0-toc-title).

<figure><img src="/files/KCnkQ5G0XfqDuLgZgsNX" alt=""><figcaption><p><strong>Create a RDS</strong> page with <strong>Create from Snapshot</strong> option</p></figcaption></figure>

## Restoring snapshots to a point in time

You can restore available RDS snapshots to a specific point in time.

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Database**.
2. In the **RDS** tab, select an RDS instance containing [snapshots](#0-toc-title).
3. Click the **Snapshots** tab.
4. Click the Actions menu and select **Backup & Restore** -> **Restore to Point in Time**. The **Restore Point in Time** pane displays.
5. In the **Target Name** field, append the RDS name to the prefilled *`TENANT_NAME`* prefix.
6. Select either the **Last Restorable Time** or **Custom date and time** option. If you select the **Custom date and time** option, specify the date and time in the format indicated.
7. Click **Submit**. Your selected RDS is restored to the point in time you specified.

## Setting an RDS automated backup retention period <a href="#id-0-toc-title" id="id-0-toc-title"></a>

can set backup retention periods in the DuploCloud Portal.

1. In the DuploCloud Portal, navigate to **Administrator** -> **System Settings**.
2. Select the **System Config** tab.
3. Click **Add**. The Config pane displays.
4. From the **Config Type** list box, select **AppConfig**.
5. From the **Key** list box, select **RDS Automated Backup Retention days**.
6. In the **Value** field, enter the number of days to retain the backup, from one (**1**) to thirty-five (**35**) days.
7. Click Submit. The System Configs area in the System Config tab is updated with the retention period you entered for the **RDS Automated Backup Retention days** key.

<div align="left"><img src="/files/rsSYBnkcTyrrb7kKJjjF" alt="Add Config pane with Key RDS Automated Backup Retention days"></div>

## Updating or skipping final snapshot

To update or skip the final snapshot, navigate to **Cloud Services** -> **Database**, and click the **RDS** tab. Select the name of the RDS database for which you want to update or skip the final snapshot.

From the **Actions** menu list box, select **Backup & Restore** -> **Update Final Snapshot**.

<figure><img src="/files/l5lBTkVtiVNvaPzUHi3C" alt=""><figcaption><p>The <strong>Actions</strong> menu for the DUPLOINVDB database with <strong>Update Final Snapshot</strong> highlighted</p></figcaption></figure>

The **Update Final Snapshot** pane for the database displays. To skip the final snapshot upon database deletion, select **Skip Final Snapshot**. Click **Update**.

<div align="left"><figure><img src="/files/UijFtgOtGvwEhYsZeu0J" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/database/rds-database/backup-and-restore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
