How to backup MariaDB on Amazon RDS Platform?
Description
Please use the following steps to backup MariaDB databases using AhsayOBM on Amazon RDS Platform.
Create backup set
- Login to your OBM user account via the AhsayCBS web management console.
- Go to User.
- Open Backup Sets.
- Click the [+] sign to create a new backup set.
- To proceed, check the names of the databases you aim to backup first.
- Use a utility like MySQL Workbench.
- Connect to the MariaDB server.
- Under the Management section select Data Export.
- Login as root to the Linux CLI machine using an SSH client.
- Go to user directory: cd /home/ahsay
- Connect to the MariaDB database server: ./mariadb -h [hostname of server] -u [login ID] -p
- Enter the password.
- Show the list of databases: show databases;
- Use a utility like MySQL Workbench.
- Ater confirming the databases, go back to your AhsayCBS web management console.
- Change the backup set type to MariaDB Backup.
- Rename the file backup set.
- Select Linux for platform.
- Enter the login ID and password, followed by the hostname of the machine used.
- You may keep the Port value on default or change it accordingly if your MariaDB database instance is setup using a different port.
- Before entering the path for mariadb-dump, make sure that the MariaDB version on the Amazon RDS matches the version installed on the backup machine you're using.
- Connect to the MariaDB server.
- Under the Management section, select Server Status.
- Connect to the MariaDB server.
- Login as root to the Linux CLI machine using an SSH client.
- Enter the following command: ./mariadb-dump --version
- Under Other selected source, click the [+] button to add a backup source.
- Manually enter the directory path of each database you intent to backup. Click the [+] to continue.
- Repeat the same step if you intend to add other sources as well.
- Click Next to continue.
- Enter the host name to use the computer name for the scheduler.
- You may use the default schedule provided or create a new one.
- Click Next.
- Click the [+] button to add a new storage destination and select AhsayCBS.
- Click the [+] button again.
- Leave the backup mode on Sequential.
- Click Save.
Configure the settings before running backup job
- Click on the backup set.
- Recommended: Open Retention Policy and enable Simple retention policy for 60 days.
- Click Others and configure the Temporary Directory.
- Leave Compressions on default. Encryption key will be set up on Linux CLI.
- Scroll down and enable File Viewer.
- Click Save.
Set up the encryption key
- Login as root to the Linux backup machine using an SSH client.
- Use the cd command to go to bin: cd /usr/local/obm/bin
- Open AhsayOBM to setup the encryption key: sh RunConfigurator.sh
- Enter 1 to login.
- Enter the login name and password.
- Enter Y to setup the encryption key of your backup set.
- Enter Y again to confirm.
- Enter 1 to select Default.
- Enter 8 to quit.
Run the backup job
- Use the sh command to run the backup job: sh RunBackupSet.sh '[backup set name]'
- After the backup job, a line will indicate Backup Completed Successfully.
Check the backed up databases from File Viewer
- Open File Viewer and reload the page.
- Select the backup set.
- Click on the MariaDB folder to see all the databases backed up.