Restore From Your Own Bucket
Restore MariaDB Cloud data from external Google Cloud Storage or Amazon S3 buckets, with backups created using mariabackup or mysqldump and replayed via the SkySQL Backup API.
Go to the MariaDB Cloud API Key management page and generate an API key. Export the value from the token field to an environment variable $API_KEYexport API_KEY='... key data ...'
Use it on subsequent request, e.g: bash curl --request
GET 'https://api.skysql.com/skybackup/v1/backups/schedules' \
--header "X-API-Key: ${API_KEY}"You can restore your data from external cloud storage. MariaDB Cloud supports restoration from both Google Cloud Storage (GCS) and Amazon S3 cloud storage buckets. Your backup data should be created using either mariabackup or mysqldump.
Below is a sample restore call:
curl --location 'https://api.skysql.com/skybackup/v1/restores' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-API-Key: ${API_KEY}' \
--data '{
"service_id": "<SERVICE_ID>",
"id": "<ID>",
"external_source": {
"bucket": "<GCS_URI> оr <S3_URI> ",
"method": "<BACKUP_METHOD>",
"credentials": "<GCP_SERVICE_ACCOUNT_BASE64> or AWS_ACCOUNT_ACCESS_KEY_BASE64"
}
}'SERVICE_ID : MariaDB Cloud service identifier, format dbtxxxxxx. You can fetch your service ID from the Fully qualified domain name(FQDN) of your service. E.g: in dbpgf17106534.sysp0000.db2.skysql.com, 'dbpgf17106534' is the service ID. You will find the FQDN in the Connect window
ID : the backup data file reference, available in your GCS or S3 bucket.
Example:
GCS_URI/S3_URI : the GCS/S3 bucket URI where the backup file is stored.
Format: gs://BUCKET_NAME/ or s3://BUCKET_NAME/
BACKUP_METHOD : the backup method used to create the backup file. Available options:
mariabackup,mysqldump\GCP_SERVICE_ACCOUNT_BASE64/AWS_ACCOUNT_ACCESS_KEY_BASE64 : Your base64 encoded GCP service account or AWS account access key.
Information on how to create a GCP service account here Storage Admin role is required for the service account attempting the restore.
Sample GCP service account key and command to encode it:
Sample AWS account access key and command to encode it:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

