storage

Storage operations

Usage

neuro storage [OPTIONS] COMMAND [ARGS]...

Storage operations.

Commands:

cp

Copy files and directories

Usage

neuro storage 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.

Any number of --exclude and --include options can be passed. The filters that appear later in the command take precedence over filters that appear earlier in the command. If neither --exclude nor --include options are specified the default can be changed using the storage.cp-exclude configuration variable documented in "neuro help user- config".

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 project's remote file into the current directory
$ neuro cp storage:/{project}/foo.txt .

# download only files with extension `.out` into the current directory
$ neuro cp storage:results/*.out .

Options

df

Show current storage usage

Usage

neuro storage df [OPTIONS] [PATH]

Show current storage usage.

If PATH is specified, show storage usage of which path is a part.

Options

glob

List resources that match PATTERNS

Usage

neuro storage glob [OPTIONS] [PATTERNS]...

List resources that match PATTERNS.

Options

ls

List directory contents

Usage

neuro storage ls [OPTIONS] [PATHS]...

List directory contents.

By default PATH is equal project's dir (storage:)

Options

mkdir

Make directories

Usage

neuro storage mkdir [OPTIONS] PATHS...

Make directories.

Options

mv

Move or rename files and directories

Usage

neuro storage mv [OPTIONS] [SOURCES]... [DESTINATION]

Move or rename files and directories.

SOURCE must contain path to the file or directory existing on the storage, and DESTINATION must contain the full path to the target file or directory.

Examples


# move and rename remote file
$ neuro mv storage:foo.txt storage:bar/baz.dat
$ neuro mv -T storage:foo.txt storage:bar/baz.dat

# move remote files into existing remote directory
$ neuro mv storage:foo.txt storage:bar/baz.dat storage:dst
$ neuro mv storage:foo.txt storage:bar/baz.dat -t storage:dst

# move the content of remote directory into other existing
# remote directory
$ neuro mv -T storage:foo storage:bar

# move remote file into other project's directory
$ neuro mv storage:foo.txt storage:/{project}/bar.dat

# move remote file from other project's directory
$ neuro mv storage:/{project}/foo.txt storage:bar.dat

Options

rm

Remove files or directories

Usage

neuro storage rm [OPTIONS] PATHS...

Remove files or directories.

Examples


$ neuro rm storage:foo/bar
$ neuro rm storage:/{project}/foo/bar
$ neuro rm storage://{cluster}/{project}/foo/bar
$ neuro rm --recursive storage:/{project}/foo/
$ neuro rm storage:foo/**/*.tmp

Options

tree

List storage in a tree-like format

Usage

neuro storage tree [OPTIONS] [PATH]

List storage in a tree-like format

Tree is a recursive directory listing program that produces a depth indented listing of files, which is colorized ala dircolors if the LS_COLORS environment variable is set and output is to tty. With no arguments, tree lists the files in the storage: directory. When directory arguments are given, tree lists all the files and/or directories found in the given directories each in turn. Upon completion of listing all files/directories found, tree returns the total number of files and/or directories listed.

By default PATH is equal project's dir (storage:)

Options

Last updated