dcloud s3 bucket-remote-copy set

Turn the remote copy on (every existing object is copied too) or off

IAM s3:PutBucketRemoteCopyChanges stateAsks before it deletes (-y skips)

On by default for new buckets on a storage cluster. While the cluster is unavailable, objects are read from the copy; an object not copied yet, listings and writes answer 503 until it is back (never 404). Off: the copy is deleted after 7 days, and an outage of the cluster makes the bucket answer 503.

Synopsis

dcloud s3 bucket-remote-copy set name --enabled enabled

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --enabledRequired

    boolean (--enabled / --no-enabled)

    true: keep a copy of every object in the storage cluster’s other location; false: stop keeping one

Example

dcloud s3 bucket-remote-copy set name --enabled

Generated from the API description, the same one the API checks requests against and the CLI is built from.