neuro cp

Copy files and directories

Usage #

neuro cp [OPTIONS] [SOURCES]... [DESTINATION]

Copy files and directories.

Either SOURCES or DESTINATION should have storage:// scheme. If scheme is omitted, file:// scheme is assumed.

Use /dev/stdin and /dev/stdout file names to copy a file from terminal and print the content of file on the storage to console.

Examples #

# copy local files into remote storage root $ neuro cp foo.txt bar/baz.dat storage: $ neuro cp foo.txt bar/baz.dat -t storage: # copy local directory `foo` into existing remote directory `bar` $ neuro cp -r foo -t storage:bar # copy the content of local directory `foo` into existing remote # directory `bar` $ neuro cp -r -T storage:foo storage:bar # download remote file `foo.txt` into local file `/tmp/foo.txt` with # explicit file:// scheme set $ neuro cp storage:foo.txt file:///tmp/foo.txt $ neuro cp -T storage:foo.txt file:///tmp/foo.txt $ neuro cp storage:foo.txt file:///tmp $ neuro cp storage:foo.txt -t file:///tmp # download other user's remote file into the current directory $ neuro cp storage://{username}/foo.txt . # download only files with extension `.out` into the current directory $ neuro cp storage:results/*.out .

Options #

NameDescription
-r, --recursiveRecursive copy, off by default
--glob / --no-globExpand glob patterns in SOURCES with explicit scheme [default: True]
-t, --target-directory DIRECTORYCopy all SOURCES into DIRECTORY
-T, --no-target-directoryTreat DESTINATION as a normal file
-p, --progress / -P, --no-progressShow progress, on by default
--helpShow this message and exit.