storage
Storage operations
Usage
Storage operations.
Commands:
Copy files and directories
Show current storage usage
List resources that match PATTERNS
List directory contents
Make directories
Move or rename files and directories
Remove files or directories
List storage in a tree-like format
cp
Copy files and directories
Usage
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 "apolo help user- config".
Examples
Options
--help
Show this message and exit.
--continue
Continue copying partially-copied files.
--exclude-from-files FILES
A list of file names that contain patterns for exclusion files and directories. Used only for uploading. The default can be changed using the storage.cp-exclude-from-files configuration variable documented in "apolo help user-config"
--exclude TEXT
Exclude files and directories that match the specified pattern.
--include TEXT
Don't exclude files and directories that match the specified pattern.
--glob / --no-glob
Expand glob patterns in SOURCES with explicit scheme. [default: glob]
-T, --no-target-directory
Treat DESTINATION as a normal file.
-p, --progress / -P, --no-progress
Show progress, on by default in TTY mode, off otherwise.
-r, --recursive
Recursive copy, off by default
-t, --target-directory DIRECTORY
Copy all SOURCES into DIRECTORY.
-u, --update
Copy only when the SOURCE file is newer than the destination file or when the destination file is missing.
df
Show current storage usage
Usage
Show current storage usage.
If PATH
is specified, show storage usage of which path is a part.
Options
--help
Show this message and exit.
glob
List resources that match PATTERNS
Usage
List resources that match PATTERNS
.
Options
--help
Show this message and exit.
ls
List directory contents
Usage
List directory contents.
By default PATH
is equal project's dir (storage:)
Options
--help
Show this message and exit.
-d, --directory
list directories themselves, not their contents.
-l
use a long listing format.
-h, --human-readable
with -l print human readable sizes (e.g., 2K, 540M).
-a, --all
do not ignore entries starting with .
--sort [name | size | time]
sort by given field, default is name.
mkdir
Make directories
Usage
Make directories.
Options
--help
Show this message and exit.
-p, --parents
No error if existing, make parent directories as needed
mv
Move or rename files and directories
Usage
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
Options
--help
Show this message and exit.
--glob / --no-glob
Expand glob patterns in SOURCES [default: glob]
-T, --no-target-directory
Treat DESTINATION as a normal file
-t, --target-directory DIRECTORY
Copy all SOURCES into DIRECTORY
rm
Remove files or directories
Usage
Remove files or directories.
Examples
Options
--help
Show this message and exit.
--glob / --no-glob
Expand glob patterns in PATHS [default: glob]
-p, --progress / -P, --no-progress
Show progress, on by default in TTY mode, off otherwise.
-r, --recursive
remove directories and their contents recursively
tree
List storage in a tree-like format
Usage
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
--help
Show this message and exit.
-h, --human-readable
Print the size in a more human readable way.
-a, --all
do not ignore entries starting with .
-s, --size
Print the size in bytes of each file.
--sort [name | size | time]
sort by given field, default is name
Last updated