aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-07-20 15:14:12 -0700
committerChris Lu <chris.lu@gmail.com>2013-07-20 15:14:12 -0700
commit3ae2eabf0990d6530473f04fe52d6a6f750daf27 (patch)
treec29f65a041fdcbb5642cdbe42f071ba7cf8d83ca /go
parent1b3f204220fe6d4b49838e7db2d03d4ba990f3ad (diff)
downloadseaweedfs-3ae2eabf0990d6530473f04fe52d6a6f750daf27.tar.xz
seaweedfs-3ae2eabf0990d6530473f04fe52d6a6f750daf27.zip
add more description to upload command
Diffstat (limited to 'go')
-rw-r--r--go/weed/upload.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/go/weed/upload.go b/go/weed/upload.go
index 5ecbd7803..0745f62c5 100644
--- a/go/weed/upload.go
+++ b/go/weed/upload.go
@@ -32,9 +32,19 @@ var cmdUpload = &Command{
UsageLine: "upload -server=localhost:9333 file1 [file2 file3]\n upload -server=localhost:9333 -dir=one_directory -include=*.pdf",
Short: "upload one or a list of files",
Long: `upload one or a list of files, or batch upload one whole folder recursively.
+
+ If uploading a list of files:
It uses consecutive file keys for the list of files.
e.g. If the file1 uses key k, file2 can be read via k_1
+ If uploading a whole folder recursively:
+ All files under the folder and subfolders will be uploaded, each with its own file key.
+ Optional parameter "-include" allows you to specify the file name patterns.
+
+ If any file has a ".gz" extension, the content are considered gzipped already, and will be stored as is.
+ This can save volume server's gzipped processing and allow customizable gzip compression level.
+ The file name will strip out ".gz" and stored. For example, "jquery.js.gz" will be stored as "jquery.js".
+
`,
}