How to Back up AWS RDS (MariaDB) with SimpleBackups

SimpleBackups founder

Laurent Lemaire

Co-founder, SimpleBackups

November 23, 2022

Amazon’s Relational Database Service (RDS) is a managed relational database service provided by AWS. As such, it’s a perfect solution to store and organize your data in a SQL database in the cloud. 

However, you should back up your databases regularly to ensure reliability. And when it comes to backing up your AWS RDS and getting the most from the platform, SimpleBackups is the perfect solution. 

This post will show you a step-by-step guide to backing up your RDS MariaDB database using SimpleBackups. 

Obtaining Your RDS Connection Credentials

Before you get started, you’ll first need your RDS connection credentials. These will allow you to enable remote MySQL connections for AWS RDS. You’ll first go to your Databases page on your AWS RDS account. 

How to get RDS connection credentials

On this page, you’ll see a list of your database instances.

You can then choose your MariaDB database from the list of instances. 

How to back up your MariaDB database

Once you’ve clicked on the database instance, a page will open where you’ll find the information for your database.

From here, you’ll need a few pieces of information. First, you’ll need the endpoint and the port of your database. You can get this information under the Connectivity & Security tab.

Find database information in MariaDB AWS RDS

You’ll also need the database name and username. You can get these under the Configuration tab. 

How to find MariaDB database name and username

How to Create Your AWS RDS (MariaDB) Backup

Once you’ve obtained your RDS connection credentials, you can set up your backup in SimpleBackups. We’ll now look at the steps you’ll follow to do this. 

Step 1: Getting to Your Dashboard

The first step is logging into your SimpleBackups account. On your dashboard, you have a few options for creating a MySQL backup. You can either click on Backups in the menu bar, click Create on the MySQL Backup tile, or click on Database backup in the right menu. 

How to create a MariaDB backup with SimpleBackups

If you click on the Backups option in the menu bar, you’ll be taken to another screen which displays a list of your backups.

To get started, you can then click Create Backup. 

How to create a MariaDB backup with SimpleBackups

No matter which option you choose, you’ll get to a screen where you can configure and create your backup.

On this screen, you should ensure that the Databases option is selected. 

How to create a MariaDB backup with SimpleBackups

Step 2: Choose Your Server

The first step in configuring your backup is deciding what server you’d like to use. Here, you have two options:

  • Serverless. This option allows you to perform the backup using SimpleBackups’ infrastructure and does the job of securely backing up your database and uploading it to your remote storage without needing to add your own server. It’s the ideal option if you don’t have a dedicated server. It’s also helpful when your database is larger than the available space on your server. 
  • Own Server. With this option, you’ll add your own server and the backups will run on your infrastructure. In this case, your server needs to have access to your database, and you can store your backups off-site, locally, or on mounted volumes. 

Depending on your unique requirements and whether you have your own server with enough space, you can then select the appropriate option. 

How to create a MariaDB backup with SimpleBackups

Apart from choosing one of these options, you should also select if your database is publicly available.

When it comes to RDS, you’ll typically decide whether the database is publicly available when you create it on AWS. 

How to create a MariaDB backup with SimpleBackups

Finally, depending on your unique setup, you might also need to whitelist SimpleBackups’ IP addresses. Doing this allows SimpleBackups to schedule and run your database backups.

We’ve provided instructions to do this in our support documentation. In the support documentation, we’ve also provided the IP addresses that you should whitelist. 

Step 3: Connect Your RDS Database

The next step is to connect SimpleBackups to your database. To do this, there are several steps you’ll need to follow:

  • You’ll select MySQL from the Type dropdown list if it’s not already selected. But, why not MariaDB? You’ll note there’s no MariaDB option. This is because MariaDB is a fork of MySQL, created by the original MySQL developer. As such, it’s very similar to MySQL and works much the same. 
  • In the Host text box, you’ll paste the endpoint that you’ve obtained earlier. 
  • You’ll enter the port number for the connection in the Port text box. When setting up your database on AWS, it will also set port 3306 as the default. However, if you’ve changed the port number when setting up your database, you should enter it here. 
  • In the User text box, you’ll enter the username for your database that you’ve obtained earlier.
  • In the Password text box, you’ll enter the password you set when setting up your database on RDS.  
  • Finally, you should provide the database name in the Database name text box. You’ve also obtained this information when you retrieved the connection credentials earlier. 

How to create a MariaDB backup with SimpleBackups

As you can see from the screenshot, you can also choose the type of backup you’d like to run.

For example, you can update all your databases at once, store your backups uncompressed to make restore quicker, stream your backups to your storage to save storage, or perform incremental backups to save resources. 

Once you’ve provided all the details of your database and selected the type of backup you’d like, you can click on Validate Connection.

Step 4: Schedule Your RDS Backup

With your database connection set up, you can now perform the final tasks to create your backup. Firstly, you’ll need to provide a name for your backup. Next, you can schedule your backups based on your requirements. 

There are a few options. For instance, you can run your backups on demand. You can also run them daily, weekly, or monthly at specified times. It’s also possible to define a custom backup schedule, which allows you to schedule backup intervals of as little as 1 minute. 

At this stage, you should also set your backup’s Retention. This is the number of recent backups that you’ll keep. If you reach this threshold, older backups will automatically be deleted. 

Schedule and select retention for your MariaDB backups

Step 5: Choose Your Storage

The final step in creating an RDS backup is choosing your storage. You can choose if you’d like to use your own remote storage or SimpleBackups’ own storage solution, SimpleStorage. 

If you choose to use your own remote storage, you can choose from several options, including Amazon S3, Dropbox, Google Cloud Storage, DigitalOcean Spaces, and more. To add your storage, you’ll click on the Connect storage button.

Choose your SimpleBackups storage

This will take you to a dialog box where you can provide the credentials for your storage in order to connect it to SimpleBackups. You’ll also need to provide the path where you’d like your backups to be stored. 

Select MariaDB storage in SimpleBackups

Once you’ve chosen and configured your storage, you can click on Create Backup.

Conclusion

There you go, now you know how to create a backup of your AWS RDS MySQL databases. In doing so, you’ll ensure that you can always recover easily should disaster strike. But SimpleBackups’ range of products doesn’t stop with backups. You can also back up servers and files, replicate your storage across different storage solutions, and get server and volume snapshots.

To learn more about SimpleBackups and how it can help you, create your first backup today. 



Back to blog

Stop worrying about your backups.
Focus on building amazing things!

Free 7-day trial. No credit card required.

Have a question? Need help getting started?
Get in touch via chat or at [email protected]

Customer support with experts
Security & compliance
Service that you'll love using