Skip to main content

tigris buckets set-migration

Configure data migration from an external S3-compatible source bucket. Tigris will pull objects on demand from the source.

note

--endpoint has to name a provider outside Tigris. A Tigris endpoint is rejected with Migration source cannot be Tigris endpoint; to copy between Tigris buckets, fork the bucket instead.

Usage​

tigris buckets set-migration <name> [flags]
t3 b set-migration <name> [flags]

Flags​

NameRequiredDefaultDescription
--bucketYes*—Name of the source bucket to migrate from
--endpointYes*—Endpoint URL of the source S3-compatible service
--regionYes*—Region of the source bucket
--access-keyYes*—Access key for the source bucket
--secret-keyYes*—Secret key for the source bucket
--write-throughNo—Enable write-through mode (writes go to both source and Tigris)
--disableNo—Disable migration and clear all migration settings

* Required unless --disable is used.

Examples​

# Set up migration from an S3 bucket
tigris buckets set-migration my-bucket \
--bucket source-bucket \
--endpoint https://s3.amazonaws.com \
--region us-east-1 \
--access-key AKIA... \
--secret-key wJal...

# Enable write-through mode
tigris buckets set-migration my-bucket \
--bucket source-bucket \
--endpoint https://s3.amazonaws.com \
--region us-east-1 \
--access-key AKIA... \
--secret-key wJal... \
--write-through

# Disable migration
tigris buckets set-migration my-bucket --disable