HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/rds/start-export-task.rst
**To export a snapshot to Amazon S3**

The following ``start-export-task`` example exports a DB snapshot named ``db5-snapshot-test`` to the Amazon S3 bucket named ``mybucket``. ::

    aws rds start-export-task \
        --export-task-identifier my-s3-export \
        --source-arn arn:aws:rds:us-west-2:123456789012:snapshot:db5-snapshot-test \
        --s3-bucket-name mybucket \
        --iam-role-arn arn:aws:iam::123456789012:role/service-role/ExportRole \
        --kms-key-id arn:aws:kms:us-west-2:123456789012:key/abcd0000-7fca-4128-82f2-aabbccddeeff

Output::

    {
        "ExportTaskIdentifier": "my-s3-export",
        "SourceArn": "arn:aws:rds:us-west-2:123456789012:snapshot:db5-snapshot-test",
        "SnapshotTime": "2020-03-27T20:48:42.023Z",
        "S3Bucket": "mybucket",
        "IamRoleArn": "arn:aws:iam::123456789012:role/service-role/ExportRole",
        "KmsKeyId": "arn:aws:kms:us-west-2:123456789012:key/abcd0000-7fca-4128-82f2-aabbccddeeff",
        "Status": "STARTING",
        "PercentProgress": 0,
        "TotalExtractedDataInGB": 0
    }

For more information, see `Exporting a Snapshot to an Amazon S3 Bucket <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ExportSnapshot.html#USER_ExportSnapshot.Exporting>`__ in the *Amazon RDS User Guide*.