Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 514 Bytes

s3.md

File metadata and controls

22 lines (17 loc) · 514 Bytes

AWS S3

Export

To export snapshot and incremental data of a TiDB Table to AWS S3:

export AWS_ACCESS_KEY_ID=<ACCESS_KEY>
export AWS_SECRET_ACCESS_KEY=<SECRET_KEY>
export AWS_SESSION_TOKEN=<SESSION_TOKEN>  # Optional

./tidb2dw s3 \
    --storage s3://my-demo-bucket/prefix \
    --table <database_name>.<table_name>

# Note that you may also need to specify these parameters:
#   --cdc.host x.x.x.x
#   --tidb.host x.x.x.x
#   --tidb.user <user>
#   --tidb.pass <pass>
# Use --help for details.