tcb storage cp
Copy a cloud file; add --move to move it instead, deleting the source after the copy.
v3.0.0+
tcb storage cp has been available since v3.0.0 and handles files only, not folders.
Usage
tcb storage cp <sourcePath> <destPath> [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
<sourcePath> | Yes | Cloud source file path | — |
<destPath> | Yes | Cloud target file path | — |
--move | No | Delete the source after copying | false |
--force | No | Overwrite an existing target file | false |
--skip | No | Skip an existing target file | false |
-e, --env-id <envId> | No | Environment ID | — |
Examples
tcb storage cp images/photo.jpg backup/photo.jpg --skip
tcb storage cp images/photo.jpg archive/photo.jpg --move
tcb storage cp images/photo.jpg backup/photo.jpg --force