Skip to main content

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​

ParameterRequiredDescriptionDefault
<sourcePath>YesCloud source file path—
<destPath>YesCloud target file path—
--moveNoDelete the source after copyingfalse
--forceNoOverwrite an existing target filefalse
--skipNoSkip an existing target filefalse
-e, --env-id <envId>NoEnvironment 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