Export data with Data Boost Stay organized with collections Save and categorize content based on your preferences.
To learn about Data Boost,seeData Boost overview.
You can export data by using theExport data page in theSpanner console, or by using a Dataflowtemplate.
Before you begin
Ensure that you have thespanner.databases.useDataBoost Identity and Access Management (IAM)permission. For more information, seeAccess control with IAM.
Export data by using the Spanner console
To export data in Avro format by using the Spanner console:
Follow the instructions inExport databases from Spanner to Avro.
Select theUse Spanner Data Boost checkbox.
To export data in CSV format:
- Use theSpanner to Cloud Storage TextDataflow template. See the next section.
Export data by using Dataflow templates
To run Dataflow exports with Data Boost,select one of the following options:
Console
Go to one of the following pages:
Follow theConsole instructions underRun the template.
On theCreate job from template page, underOptional parameters,enter
truein theUse Spanner Data Boost field.
gcloud CLI
Go to one of the following pages:
Follow thegloud instructions underRun the template.
Add the following parameter to the command:
dataBoostEnabled=trueThe following example runs the Spanner to Cloud Storage Avrotemplate and specifies the use of Data Boost.
gclouddataflowjobsrunmy_export_job\--gcs-locationgs://dataflow-templates/latest/Cloud_Spanner_to_GCS_Avro\--regionus-central1\--staging-locationgs://mybucket/temp\--parameters\instanceId=my_instance,\databaseId=my_database,\outputDir=gs://mybucket/export\dataBoostEnabled=true
What's next
- Learn about Data Boost inData Boost overview.
- Use Data Boost in your applications
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.