Skip to main content

Copy

NameTypeDescription
targetobjectInformation about the target, including location, file naming, and method for handling existing files.
optionsobjectOptions for the copy operation, including control over source deletion and error handling.

Example copy

{
"name": "Hybrik Copy Example",
"payload": {
"elements": [
{
"uid": "source_file",
"kind": "source",
"payload": {
"kind": "asset_url",
"payload": {
"storage_provider": "s3",
"url": "s3://my_source_bucket/my_source_folder/my_file.mp4"
}
}
},
{
"uid": "copy_task",
"kind": "copy",
"payload": {
"target": {
"location": {
"storage_provider": "s3",
"path": "s3://my_destination_bucket/my_destination_folder"
},
"existing_files": "replace",
"file_pattern": "{source_name}"
}
}
}
],
"connections": [
{
"from": [
{
"element": "source_file"
}
],
"to": {
"success": [
{
"element": "copy_task"
}
]
}
}
]
}
}