Aiven Database
How to back up and restore Aiven Managed databases via SimpleBackups
Creating backups
To create backups for Aiven database using SimpleBackups, follow these steps. The process is designed to be straightforward, ensuring that your Aiven database is securely backed up.
You can create a Backup for any Aiven Database type:
- Aiven MySQL database.
- Aiven PostgreSQL database.
Prerequisites
- A SimpleBackups account.
- Access to your Aiven database
- Network access from SimpleBackups to your Aiven database.
Step 1: Log in to Your Aiven Account:
- Open the Project contains the database you want to backup.
- Navigate to the Services section from the left menu.
Step 2: Configure IP Filtering:
- Select the database you want to backup.
- Navigate to “Network” section and choose “set public IP filters”.
- Add SimpleBackups IP addresses to the whitelist:
Reference here: Exoscale PostgreSQL
Step 3: Copy Connection Data:
- Navigate to “Connection information” section and copy the “Service URI”.
- Download the “CA certificate”.
Step 4: Set Up Backup in SimpleBackups:
- Log in to your SimpleBackups account or create a new one if needed.
- Navigate to creating a new database backup.
- Choose "Serverless".
Step 5: Fill the connection details:
- Manual form fill:
- Choose the Database “Type”.
- You can either fill the form with connection details or select "Paste Connection string" and paste the service URI.
- Auto form fill:
- Click on “Connect your DBaaS Provider”.
- Choose an Aiven provider.
- Select a managed database.
- Click on “Load”.
- Under "Certificate / TLS," select "REQUIRED" mode.
- Paste the downloaded CA certificate in the designated field.
Step 6: Validate and Activate Backup:
- Click on "validate connection" to ensure all settings are correct and the connection can be established.
- Once validated, finalize any additional backup settings (like scheduling) and activate the backup.
This process ensures that your Aiven database is securely backed up using SimpleBackups, providing an additional layer of data protection.
Restoring backups
In order to restore your backup, Go to your backup page, then navigate into logs.
Click on the “i” button on the backup that’s on the point of time you’d like to restore to.
Click on the Restore tab, then generate a new download link, and copy it.
Based on your database type run these commands (for example: PostgreSQL):
wget -O - "PasteTheSignedDownloadLinkHereBetweenTheQuotes" | gunzip -c > decrypted-backup.pgsql
Then, run the pg_restore
command to restore your database like so:
pg_restore -d "your_db_uri" ./decrypted-backup.pgsql
pg_restore
updated to the latest version to avoid facing restore issues. Aiven MySQL Database backup
SimpleBackups supports Aiven MySQL Database backup.
Aiven PostgreSQL Database backup
SimpleBackups supports Aiven PostgreSQL Database backup.
Last updated on July 30, 2024