# 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FiNwYVMf4fky7ZPl41t38%2FKabab_three_Vertical_dots.png?alt=media&#x26;token=566b1d4e-a9bc-43c8-995a-044ceab9f38b" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FCpipEKGtU0paNjfqKldb%2Fscreenshot-nimbusweb.me-2024.02.19-17_22_14.png?alt=media&#x26;token=4d547512-3b3d-40d8-9269-44c6368c7b9f" 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](https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/database/rds-database/..#0-toc-title).

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FOL9IaypuzkbwLNz1gFZU%2Fscreenshot-nimbusweb.me-2024.02.19-17_24_36.png?alt=media&#x26;token=43fe348f-d78c-410f-8947-d21762026e3c" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FOeWaXynqopfScvgDCFOJ%2Fres4.png?alt=media&#x26;token=6d1a983b-5277-43d4-8eb4-6acb1ec8c478" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FMiOFyk6HWdXJfUTyZwUJ%2Frds%20snapshot.png?alt=media&#x26;token=bc9e7bd5-b353-4d6d-a8fa-fd6dd0b70b09" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F2mqC0I8uvuSwlxx11tCH%2Frde%20snadhyas.png?alt=media&#x26;token=62078d70-754d-4de2-8064-ada8d3d916ef" alt=""><figcaption></figcaption></figure></div>
