mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix help message
This commit is contained in:
parent
e9128e75d0
commit
18228f3044
|
@ -24,10 +24,10 @@ func (c *commandRemoteCache) Name() string {
|
||||||
func (c *commandRemoteCache) Help() string {
|
func (c *commandRemoteCache) Help() string {
|
||||||
return `cache the file content for mounted directories or files
|
return `cache the file content for mounted directories or files
|
||||||
|
|
||||||
# assume a remote storage is configured to name "s3_1"
|
# assume a remote storage is configured to name "cloud1"
|
||||||
remote.configure -name=s3_1 -type=s3 -access_key=xxx -secret_key=yyy
|
remote.configure -name=cloud1 -type=s3 -access_key=xxx -secret_key=yyy
|
||||||
# mount and pull one bucket
|
# mount and pull one bucket
|
||||||
remote.mount -dir=xxx -remote=s3_1/bucket
|
remote.mount -dir=xxx -remote=cloud1/bucket
|
||||||
|
|
||||||
# after mount, run one of these command to cache the content of the files
|
# after mount, run one of these command to cache the content of the files
|
||||||
remote.cache -dir=xxx
|
remote.cache -dir=xxx
|
||||||
|
|
|
@ -27,13 +27,13 @@ func (c *commandRemoteMount) Name() string {
|
||||||
func (c *commandRemoteMount) Help() string {
|
func (c *commandRemoteMount) Help() string {
|
||||||
return `mount remote storage and pull its metadata
|
return `mount remote storage and pull its metadata
|
||||||
|
|
||||||
# assume a remote storage is configured to name "s3_1"
|
# assume a remote storage is configured to name "cloud1"
|
||||||
remote.configure -name=s3_1 -type=s3 -access_key=xxx -secret_key=yyy
|
remote.configure -name=cloud1 -type=s3 -access_key=xxx -secret_key=yyy
|
||||||
|
|
||||||
# mount and pull one bucket
|
# mount and pull one bucket
|
||||||
remote.mount -dir=xxx -remote=s3_1/bucket
|
remote.mount -dir=xxx -remote=cloud1/bucket
|
||||||
# mount and pull one directory in the bucket
|
# mount and pull one directory in the bucket
|
||||||
remote.mount -dir=xxx -remote=s3_1/bucket/dir1
|
remote.mount -dir=xxx -remote=cloud1/bucket/dir1
|
||||||
|
|
||||||
# after mount, start a separate process to write updates to remote storage
|
# after mount, start a separate process to write updates to remote storage
|
||||||
weed filer.remote.sync -filer=<filerHost>:<filerPort> -dir=xxx
|
weed filer.remote.sync -filer=<filerHost>:<filerPort> -dir=xxx
|
||||||
|
|
Loading…
Reference in a new issue