- Newest
- Most votes
- Most comments
The issue you're experiencing with the "Restore From S3" feature in Amazon RDS is likely due to a mismatch between the backup file format you're using and what RDS expects for this operation.
For RDS MySQL instances, the "Restore From S3" feature specifically requires backup files created using Percona XtraBackup. It doesn't support direct restoration from .sql, .csv, or .sql.gz files. These file types are not recognized by the RDS restore process, which explains why you're receiving the "No backup files were found" message.
To successfully use this feature, you need to:
- Create a backup of your MySQL database using Percona XtraBackup.
- Upload the XtraBackup files to your S3 bucket.
- When specifying the S3 prefix, you should use the folder path where the XtraBackup files are located, not the full file name.
For example, if your XtraBackup files are in a folder called "mysql_backup" within your "productiontest" bucket, you would use "mysql_backup/" as the S3 prefix.
Additionally, ensure that:
- The IAM role associated with your RDS instance has the necessary permissions to access the S3 bucket.
- The S3 bucket is in the same AWS region as your RDS instance.
- You're using a supported DB instance class (note that db.t2.micro is not supported for this operation).
If you need to import data from .sql or .sql.gz files, you might consider alternative methods such as importing the data after creating the RDS instance, or using AWS Database Migration Service (DMS) for more complex migration scenarios.
Sources
Restoring a backup into an Amazon RDS for MySQL DB instance - Amazon Relational Database Service
Where is the source bucket specification in RDS > Restore from S3? | AWS re:Post
Relevant content
- asked 3 years ago
- asked 2 years ago
