Copy
Copy a file between MinIO buckets.
yaml
type: "io.kestra.plugin.minio.Copy"
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 string
Access Key Id for authentication.
bucket string
The bucket name.
delete booleanstring
Default
false
Whether to delete the source file after download.
endpoint string
URL to the MinIO endpoint.
from Non-dynamicCopy-CopyObjectFrom
The source bucket and key.
region string
MinIO region with which the SDK should communicate.
secretKeyId string
Secret Key Id for authentication.
to Non-dynamicCopy-CopyObject
The destination bucket and key.
Outputs
bucket string
key string
versionId string
The version of the object.
Definitions
io.kestra.plugin.minio.Copy-CopyObjectFrom
bucket string
The bucket name
key string
The bucket key
versionId string
The specific version of the object.
io.kestra.plugin.minio.Copy-CopyObject
bucket string
The bucket name
key string
The bucket key