Download ApsaraDB RDS for MySQL backups for long-term retention, querying, migration, or auditing.
Downloaded backup files cannot be used to restore an ApsaraDB RDS instance directly. To restore an instance, see Overview of data restoration solutions.
Choose a download method
Before downloading, identify your scenario to pick the most efficient method.
| Scenario | Recommended approach |
|---|---|
| Migrate to another RDS instance or a self-managed database | Restore to a new instance, restore from a physical backup, or migrate data using Data Transmission Service (DTS) |
| Query data at a specific point in time | Restore to a pay-as-you-go or Serverless instance, query, then release the instance. See Restore full data. Alternatively, download the backup as described in this topic and restore it to a self-managed database. |
| Save a local copy or download for auditing | Download the backup as described in this topic, export data using Data Management (DMS), or use mysqldump |
| Upload a backup to Object Storage Service (OSS) | For cloud disk instances, create an Advanced Download task and save directly to OSS. For other instances, download the backup first and then upload it to OSS. Alternatively, use Database Backup (DBS) and select OSS as the storage type. |
| Long-term backup retention | See Long-term backup retention |
| Automate backup downloads | Use DBS for logical backup and configure automatic downloads |
| Download binary logs | For cloud disk instances, download the log backup for the target point in time. For instances with high-performance local disks, see Download a local disk backup. |
Usage notes
Failed tasks are not charged.
A download task cannot be canceled after it starts.
Each cluster or instance supports only one download task at a time. A new task cannot start if a previous task is running or has failed.
Downloading a backup does not use the current instance's bandwidth.
Billing
Network traffic fees
| Download type | Fee |
|---|---|
| Internal network download | Free |
| External network download | Free for the first 500 GB per instance per month; pay-as-you-go beyond that |
To view your external download volume, go to the ApsaraDB RDS instance list, click the instance ID, and check Backup Download Volume in the Instance Resources section on the Basic Information page.
Purchase a network plan to cover external download traffic at a discounted rate.
If you download backups to OSS, charges are based on your actual OSS usage.
Backup set conversion fees
This fee applies when you use the Advanced Download feature for a cloud disk instance to convert a snapshot backup into CSV, SQL, Parquet, or qb.xb (physical backup) format. No free quota applies.
| Region | Conversion fee |
|---|---|
| Public cloud | USD 0.03125/GB |
No conversion fee is charged if the conversion task fails.
After decompressing a qb.xb (physical backup) file converted from a snapshot backup, the file size may be smaller than the Backup Conversion Traffic displayed in the console.
Region | Conversion fee (USD/GB) |
Public cloud | 0.03125 |
Download backups from a cloud disk instance
Cloud disk instances support Advanced Download tasks for a specific point in time or a specific backup set. Convert snapshot backups to CSV, SQL, Parquet, or qb.xb (physical backup) format and download to a URL or directly to an OSS bucket.
Prerequisites
Before you begin, make sure that your instance meets all of the following conditions:
Instance status: Running
Storage type: Enterprise SSD (ESSD) or Premium Performance Disk
Database version: MySQL 8.0 or 5.7
Supported regions: China (Chengdu), China (Shenzhen), China (Guangzhou), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hangzhou), China (Shanghai), Hong Kong (China), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Japan (Tokyo), Singapore, US (Silicon Valley), US (Virginia), and Germany (Frankfurt). The feature is rolling out to additional regions — check the console for the current list.
Minor engine version:
20201031or later. If your instance does not meet this requirement, upgrade the minor engine version.Backup encryption: Disabled. Advanced Download is not supported for encrypted instances that use cloud disks.
Data archiving: Disabled. Advanced Download is not supported for Premium Performance Disk instances with data archiving enabled.
RAM permissions: The Resource Access Management (RAM) user must have backup file download permissions. See Grant permissions to a read-only RAM user to download backup files.
The Download Instance Backup button may be unavailable even when the minor engine version meets the requirement. This can happen when the database proxy is enabled on instances with hardware limitations. To resolve this, disable the database proxy, then upgrade the minor engine version. After the upgrade, re-enable the proxy if needed.
Limitations
Unsupported objects: Downloaded backup files do not include expression indexes, foreign keys, generated columns, hidden columns, views, functions, stored procedures, system variables, or triggers.
Unsupported databases: System databases are excluded:
information_schema,mysql,performance_schema,sys, and__recycle_bin__.Unsupported data types: Download tasks may fail for tables containing
GEOMETRY,POINT,LINESTRING,POLYGON,MULTIPOINT,MULTILINESTRING,MULTIPOLYGON, orGEOMETRYCOLLECTIONdata types.Name restriction: Database and table names cannot contain forward slashes (
/). Tasks will fail if names include this character.OSS storage class: Only OSS buckets using the Standard storage class are supported as download destinations. To save to a bucket with a different storage class, either download to a Standard bucket first and convert the storage class, or download to a local machine and upload to the destination bucket.
Download a cloud disk backup
Go to the ApsaraDB RDS instance list, select the instance's region, and click the instance ID.
In the left navigation pane, click Backup and Restoration > Base Backup List.
Start the download task:
Log backup: On the Log Backup tab, find the target log file and click Download in the Actions column. Log backup must be enabled.
Data backup: On the Data Backup tab, find the target backup set and click Download Instance Backup in the Actions column.
In the Download Time Point and Backup Set step, select Download by Backup Set or Download by Time Point, then click Next.
In the Download Instance and Database/Table step, keep the default (Instance Download) and click Next.
In the Download Destination and Format step, configure the destination and format:
Download destination Configuration OSS (recommended) Enter the bucket name and directory prefix. Set the download format to CSV (without header), CSV-with-header, SQL, Parquet, or qb.xb (physical backup). If this is your first time using this feature, click Go to Authorize > Agree to Authorization to grant ApsaraDB RDS access to OSS. URL Select URL and the download format. After the task completes, manually generate a download link. The link is valid for a limited period. Accept the terms and click Finish. The console redirects you to the Backup Download List tab to monitor the task.
Get the backup file:
OSS: Wait for the task status to become Successful. The file is automatically saved to the specified OSS bucket and directory.
URL: Wait for the task status to become Successful. Within 3 days, click Generate Link in the Download Destination column. Set the link validity from 5 minutes to 1 day (default: 2 hours). After the link expires, temporary data is deleted and you must create a new download task.
ImportantThe conversion process competes for computing resources. A download may fail due to temporary resource allocation issues or unsupported data formats. If a task fails, create a new download task.
Download the file using wget or curl (recommended for stability and resumable downloads): wget
Parameter Description -cEnables resumable downloads -t 0Retries indefinitely -OOutput path and filename nohup ... &Runs in the background; the process exits after the download completes Parameter Description -C -Enables automatic resumable downloads --retry 10Retries up to 10 times on failure -oOutput path and filename nohup ... &Runs in the background; the process exits after the download completes nohup wget -c -t 0 "<backup-download-url>" -O <local-path/filename.tar.gz> > /tmp/download.log &Example:
nohup wget -c -t 0 "https://dbs-****.aliyundoc.com/****.tar.gz****" -O /backup/examplebackup.tar.gz > /tmp/download.log &curl
nohup curl -C - --retry 10 "<backup-download-url>" -o <local-path/filename.tar.gz> > /tmp/download.log &Example:
nohup curl -C - --retry 10 "https://dbs-****.aliyundoc.com/****.tar.gz****" -o examplebackup.tar.gz > /tmp/download.log &For small files, paste the external URL directly into your browser.
If the download speed drops below 64 KB/s, the download may be interrupted. Make sure you have a stable network connection. If you mount OSS using ossfs, the default multipart_size limit is 100 GB. For backup sets larger than 100 GB, increase this value. See ossfs and Mounting options. Use only wget or curl to download backup sets — third-party tools may download the file repeatedly and generate extra outbound traffic charges.Downloads for instances with high-performance local disks
For instances with high-performance local disks, no data format conversion is required. Get the download link for a physical backup or log backup immediately.
Prerequisites
Before you begin, make sure that:
Storage type: High-performance local disk
RAM permissions: The RAM user must have backup file download permissions. See Grant permissions to a read-only RAM user to download backup files.
Download a local disk backup
Go to the ApsaraDB RDS instance list, select the instance's region, and click the instance ID.
In the left navigation pane, click Backup and Restoration > Base Backup List.
Select the Data Backup or Log Backup tab.
Find the target backup file and click Download Instance Backup or Download in the Actions column.
In the dialog box, copy the internal URL or the external URL:
Internal URL (recommended): Fast and free. Download from an Elastic Compute Service (ECS) instance in the same region and Virtual Private Cloud (VPC). Cross-region downloads over the internal network are not supported.
External URL: Use this to download from a local machine or another network environment.
The download link is valid for 1 hour. Download the file promptly. If the link expires, create a new download task. A download already in progress is not affected by the link expiration.
Download the file using wget or curl (recommended for stability and resumable downloads): wget
nohup wget -c -t 0 "<backup-download-url>" -O <local-path/filename.tar.gz> > /tmp/download.log &Example:
nohup wget -c -t 0 "https://dbs-****.aliyundoc.com/****.tar.gz****" -O /backup/examplebackup.tar.gz > /tmp/download.log &curl
nohup curl -C - --retry 10 "<backup-download-url>" -o <local-path/filename.tar.gz> > /tmp/download.log &Example:
nohup curl -C - --retry 10 "https://dbs-****.aliyundoc.com/****.tar.gz****" -o examplebackup.tar.gz > /tmp/download.log &For small files, paste the external URL directly into your browser.
A log backup is a copy of the binary logs. To retrieve binary log content, see mysqlbinlog. For high-availability or three-node edition instances, both the primary and secondary instances generate log backups. View primary and secondary instance IDs on the or three-node editionService Availability page. To restore data to a self-managed database, the data backup time must fall within the time range of the log backup, and both must be from the same instance (same instance ID).
FAQ
What's next
Use a downloaded qb.xb (physical backup) file from a cloud disk instance: Download and decompress the backup file, then restore to a self-managed database.
Use a CSV or SQL export from a cloud disk instance: Restore to a self-managed database.
Run queries on cloud disk instance data: Download to OSS using Advanced Download, then import from OSS to AnalyticDB for MySQL.
Restore a logical backup from a high-performance local disk instance: Restore to a self-managed database using mysqldump.
Restore a physical backup from a high-performance local disk instance: Restore to a self-managed database.
Download backups using the API:
DescribeDownloadSupport — Check Advanced Download support for cloud disk instances
CreateDownload — Create a download task
DescribeDownloadTask — Query the download task list
DescribeDownloadBackupSetStorageInfo — View backup set storage information
DescribeBackups — List backup sets for an RDS instance
DescribeBinlogFiles — List binary log files
Download backups for other database engines: PostgreSQL | SQL Server | MariaDB
References
CreateDownload - Create a download task (for instances that use cloud disks)
DescribeDownloadTask - Query the list of download tasks (for instances that use cloud disks)
DescribeBackups - View the list of backup sets for an ApsaraDB RDS instance
DescribeBinlogFiles - View the binary log (Binglog) files of an ApsaraDB RDS instance
Download a log backup for an ApsaraDB RDS for MariaDB instance