operations_copyfile
Copies a single file from a source remote and path to a destination remote and path in rclone-managed storage.
Instructions
Copy a single file — Copies one object from a source remote and path to a destination remote and path.
IMPORTANT: If this operation is expected to take a long time (more than a few seconds), you MUST set _async: true to run it in the background. It will return a jobid immediately, which you can poll using the job_status tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dstFs | No | Destination remote name or path, such as `drive2:` or `/` for local filesystem. | |
| srcFs | No | Source remote name or path, such as `drive:` or `/` for the local filesystem. | |
| _async | No | Run this operation asynchronously in the background. Highly recommended to set to true for long-running operations to avoid timeout. | |
| _group | No | Assign the request to a custom stats group. | |
| dstRemote | No | Target path within `dstFs` where the file should be written. | |
| srcRemote | No | Path to the source object within `srcFs`, for example `dir/file.txt`. |