Copy Copy

yaml
type: "io.kestra.plugin.minio.Copy"

Copy a file between buckets.

Examples

yaml
id: minio_copy
namespace: company.team

tasks:
  - id: copy
    type: io.kestra.plugin.minio.Copy
    accessKeyId: "<access-key>"
    secretKeyId: "<secret-key>"
    region: "eu-central-1"
    from:
      bucket: "my-bucket"
      key: "path/to/file"
    to:
      bucket: "my-bucket2"
      key: "path/to/file2"

Copy file in an S3-compatible storage — here, Spaces Object Storage from Digital Ocean.

yaml
id: s3_compatible_copy
namespace: company.team

tasks:
  - id: copy_file
    type: io.kestra.plugin.minio.Copy
    accessKeyId: "<access-key>"
    secretKeyId: "<secret-key>"
    endpoint: https://<region>.digitaloceanspaces.com
    from:
      bucket: "my-bucket"
      key: "path/to/file"
    to:
      bucket: "my-bucket2"
      key: "path/to/file2"

Properties

accessKeyId

  • Type: string
  • Dynamic: ✔️
  • Required:

Access Key Id for authentication.

bucket

  • Type: string
  • Dynamic: ✔️
  • Required:

The bucket name.

delete

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: false

Whether to delete the source file after download.

endpoint

  • Type: string
  • Dynamic: ✔️
  • Required:

URL to the MinIO endpoint.

from

The source bucket and key.

region

  • Type: string
  • Dynamic: ✔️
  • Required:

MinIO region with which the SDK should communicate.

secretKeyId

  • Type: string
  • Dynamic: ✔️
  • Required:

Secret Key Id for authentication.

to

The destination bucket and key.

Outputs

bucket

  • Type: string
  • Required:

key

  • Type: string
  • Required:

versionId

  • Type: string
  • Required:

The version of the object.

Definitions

io.kestra.plugin.minio.Copy-CopyObjectFrom

Properties

bucket
  • Type: string
  • Dynamic: ✔️
  • Required:

The bucket name

key
  • Type: string
  • Dynamic: ✔️
  • Required:

The bucket key

versionId
  • Type: string
  • Dynamic: ✔️
  • Required:

The specific version of the object.

io.kestra.plugin.minio.Copy-CopyObject

Properties

bucket
  • Type: string
  • Dynamic: ✔️
  • Required:

The bucket name

key
  • Type: string
  • Dynamic: ✔️
  • Required:

The bucket key

Was this page helpful?