Skip to content
Last updated

TD Table Export Command Reference

Dump logs in a table to the specified storage.

Usage

$ td table:export <db> <table>

Options

OptionDescription
-w, --waitwait until the job is completed
-f, --from TIMEexport data that is newer than or same with the TIME
-t, --to TIMEexport data which is older than the TIME
-b, --s3-bucket NAMEname of the destination S3 bucket (required)
-p, --prefix PATHpath prefix of the file on S3
-k, --aws-key-id KEY_IDAWS access key ID to export data (required)
-s, --aws-secret-key SECRET_KEYAWS secret access key to export data (required)
-F, --file-format FILE_FORMATfile format for exported data.Available formats are tsv.gz (tab-separated values per line) and jsonl.gz (JSON record per line).The json.gz and line-json.gz formats are default and still available, but only for backward compatibility.Use of this option is discouraged because of lower performance.
-O, --pool-name NAMEspecify resource pool by name
-e, --encryption ENCRYPT_METHODexport with server-side encryption with the ENCRYPT_METHOD
-a, --assume-role ASSUME_ROLE_ARNexport with assume role with ASSUME_ROLE_ARN as role arn