Skip to content

Commit

Permalink
new tutorial on how to enable multi-region backup on RDS (#473)
Browse files Browse the repository at this point in the history
* new tutorial on how to enable multi-region backup on RDS

* fix
  • Loading branch information
acarranoqovery authored Sep 27, 2024
1 parent 21b2826 commit 809cdda
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 0 deletions.
78 changes: 78 additions & 0 deletions website/guides/advanced/adding-multi-region-backup-rds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
last_modified_on: "2024-09-26"
$schema: "/.meta/.schemas/guides.json"
title: Enable multi-region backup on your RDS instances with AWS Backup
description: Learn how to enable the multi-region backup on your RDS instance (PostgreSQL, MySQL) via the AWS Backup feature
author_github: https://github.com/acarranoqovery
tags: ["type: guide", "technology: qovery"]
---
import Steps from '@site/src/components/Steps';
import Assumptions from '@site/src/components/Assumptions';
import Alert from '@site/src/components/Alert';

Managed RDS instances deployed with Qovery have by default a backup option enabled on the same region where the RDS instance is located. However, for enhanced disaster recovery and compliance purposes, you may need to set up multi-region backups.
This guide will help you configure an AWS Backup job to create additional backups of your RDS instances in a different region. Multi-region backups provide several benefits:

- Improved disaster recovery: If one AWS region becomes unavailable, you can restore your database from a backup in another region.
- Compliance: Some regulations require data to be backed up in geographically distinct locations.
- Data migration: Multi-region backups can facilitate moving your database to a different region if needed.

For more information about AWS Backup, have a look at [this documentation](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html).

Alert type="warning">
Cost Considerations: Setting up multi-region backups will incur additional costs. These costs include:
- Storage costs for the backup data in the secondary region
- Data transfer costs for copying the backup data between regions
- Potential costs for restoring from a backup in a different region
Be sure to review the AWS Backup pricing and AWS data transfer pricing to estimate the costs for your specific use case. You can use AWS Cost Explorer to monitor these costs over time.
</Alert>


# How to configure

Make sure you have already your Managed Database (RDS PostgreSQL or MySQL) deployed with Qovery

<!--
THIS FILE IS AUTOGENERATED!
To make changes please edit the template located at:
website/guides/advanced/adding-multi-region-backup-rds.md.erb
-->

## 1. Create an AWS Backup Plan

Go to the AWS Console and follow [this guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/creating-a-backup-plan.html#create-backup-plan-console) to create your AWS Backup plan. For the setup, you can use the default settings but take into account the following points:
- **Vault**: you can use the default vault as long as you don't have any additional security requirement (share snapshots externally etc.)
- **Start time**: update the start time based on your needs
- **Total retention period**: update the retention period for the snapshots based on your needs
- **Copy to destination**: at this step, select the region where you want to create the database snapshot

Press **Create Plan**

## 2. Assign resources

On the next step, we will define the resource that this backup job should target:

1. Select the option "Include specific resource types"
2. In the dropdown list for "Select specific resource types", select "RDS"
3. (Optional) if you don't want this plan to run on every RDS instance, uncheck the option "All databases" and select the databases from the dropdown list
4. Press "Assign Resources"

# Checking the new backups

Now, based on your schedule, you should see backup jobs starting and creating backups in the selected vault:

1. Select the region where the backup should be created
2. Open the "Vault" section on the right
3. Select the vault that the AWS backup job should target
4. Verify that new "Recovery points" have been created

<p align="center">
<img src="/img/multi-region-backup/vault-backup.png" alt="Vault Backup location" />
</p>

From this page you can restore a backup (refer to the AWS documentation for more information).



66 changes: 66 additions & 0 deletions website/guides/advanced/adding-multi-region-backup-rds.md.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
$schema: "/.meta/.schemas/guides.json"
title: Enable multi-region backup on your RDS instances with AWS Backup
description: Learn how to enable the multi-region backup on your RDS instance (PostgreSQL, MySQL) via the AWS Backup feature
author_github: https://github.com/acarranoqovery
tags: ["type: guide", "technology: qovery"]
---
import Steps from '@site/src/components/Steps';
import Assumptions from '@site/src/components/Assumptions';
import Alert from '@site/src/components/Alert';

Managed RDS instances deployed with Qovery have by default a backup option enabled on the same region where the RDS instance is located. However, for enhanced disaster recovery and compliance purposes, you may need to set up multi-region backups.
This guide will help you configure an AWS Backup job to create additional backups of your RDS instances in a different region. Multi-region backups provide several benefits:

- Improved disaster recovery: If one AWS region becomes unavailable, you can restore your database from a backup in another region.
- Compliance: Some regulations require data to be backed up in geographically distinct locations.
- Data migration: Multi-region backups can facilitate moving your database to a different region if needed.

For more information about AWS Backup, have a look at [this documentation](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html).

Alert type="warning">
Cost Considerations: Setting up multi-region backups will incur additional costs. These costs include:
- Storage costs for the backup data in the secondary region
- Data transfer costs for copying the backup data between regions
- Potential costs for restoring from a backup in a different region
Be sure to review the AWS Backup pricing and AWS data transfer pricing to estimate the costs for your specific use case. You can use AWS Cost Explorer to monitor these costs over time.
</Alert>


# How to configure

Make sure you have already your Managed Database (RDS PostgreSQL or MySQL) deployed with Qovery

## 1. Create an AWS Backup Plan

Go to the AWS Console and follow [this guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/creating-a-backup-plan.html#create-backup-plan-console) to create your AWS Backup plan. For the setup, you can use the default settings but take into account the following points:
- **Vault**: you can use the default vault as long as you don't have any additional security requirement (share snapshots externally etc.)
- **Start time**: update the start time based on your needs
- **Total retention period**: update the retention period for the snapshots based on your needs
- **Copy to destination**: at this step, select the region where you want to create the database snapshot

Press **Create Plan**

## 2. Assign resources

On the next step, we will define the resource that this backup job should target:

1. Select the option "Include specific resource types"
2. In the dropdown list for "Select specific resource types", select "RDS"
3. (Optional) if you don't want this plan to run on every RDS instance, uncheck the option "All databases" and select the databases from the dropdown list
4. Press "Assign Resources"

# Checking the new backups

Now, based on your schedule, you should see backup jobs starting and creating backups in the selected vault:

1. Select the region where the backup should be created
2. Open the "Vault" section on the right
3. Select the vault that the AWS backup job should target
4. Verify that new "Recovery points" have been created

<p align="center">
<img src="/img/multi-region-backup/vault-backup.png" alt="Vault Backup location" />
</p>

From this page you can restore a backup (refer to the AWS documentation for more information).
9 changes: 9 additions & 0 deletions website/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,15 @@ module.exports = {
"series_position": null,
"title": "Deploy a DaemonSet in a Karpenter context"
},
{
"author_github": "https://github.com/acarranoqovery",
"description": null,
"id": "/advanced/adding-multi-region-backup-rds",
"last_modified_on": null,
"path": "website/guides/advanced/adding-multi-region-backup-rds.md",
"series_position": null,
"title": "Enable multi-region backup on your RDS instances with AWS Backup"
},
{
"author_github": "https://github.com/evoxmusic",
"description": null,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 809cdda

Please sign in to comment.