aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-14 15:55:53 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-14 15:55:53 -0700
commitcb53802752919fd91342927b401f8f66652c79ec (patch)
tree82ec77d1287860a4bbca5be716ab88b98ce6c97a
parent889b143fa73b95f15548fd31e0543496afd91362 (diff)
downloadseaweedfs-cb53802752919fd91342927b401f8f66652c79ec.tar.xz
seaweedfs-cb53802752919fd91342927b401f8f66652c79ec.zip
adjust help message
-rw-r--r--weed/shell/command_remote_cache.go8
-rw-r--r--weed/shell/command_remote_mount.go6
-rw-r--r--weed/shell/command_remote_uncache.go8
-rw-r--r--weed/shell/command_remote_unmount.go4
4 files changed, 13 insertions, 13 deletions
diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go
index 8980fc82e..561484302 100644
--- a/weed/shell/command_remote_cache.go
+++ b/weed/shell/command_remote_cache.go
@@ -27,12 +27,12 @@ func (c *commandRemoteCache) Help() string {
# assume a remote storage is configured to name "cloud1"
remote.configure -name=cloud1 -type=s3 -access_key=xxx -secret_key=yyy
# mount and pull one bucket
- remote.mount -dir=xxx -remote=cloud1/bucket
+ remote.mount -dir=/xxx -remote=cloud1/bucket
# after mount, run one of these command to cache the content of the files
- remote.cache -dir=xxx
- remote.cache -dir=xxx/some/sub/dir
- remote.cache -dir=xxx/some/sub/dir -include=*.pdf
+ remote.cache -dir=/xxx
+ remote.cache -dir=/xxx/some/sub/dir
+ remote.cache -dir=/xxx/some/sub/dir -include=*.pdf
This is designed to run regularly. So you can add it to some cronjob.
If a file is already synchronized with the remote copy, the file will be skipped to avoid unnecessary copy.
diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go
index 3b04fec63..189d1d937 100644
--- a/weed/shell/command_remote_mount.go
+++ b/weed/shell/command_remote_mount.go
@@ -31,12 +31,12 @@ func (c *commandRemoteMount) Help() string {
remote.configure -name=cloud1 -type=s3 -access_key=xxx -secret_key=yyy
# mount and pull one bucket
- remote.mount -dir=xxx -remote=cloud1/bucket
+ remote.mount -dir=/xxx -remote=cloud1/bucket
# mount and pull one directory in the bucket
- remote.mount -dir=xxx -remote=cloud1/bucket/dir1
+ remote.mount -dir=/xxx -remote=cloud1/bucket/dir1
# 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
`
}
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go
index f94fe8bec..733218379 100644
--- a/weed/shell/command_remote_uncache.go
+++ b/weed/shell/command_remote_uncache.go
@@ -29,10 +29,10 @@ func (c *commandRemoteUncache) Help() string {
This is designed to run regularly. So you can add it to some cronjob.
If a file is not synchronized with the remote copy, the file will be skipped to avoid loss of data.
- remote.uncache -dir=xxx
- remote.uncache -dir=xxx/some/sub/dir
- remote.uncache -dir=xxx/some/sub/dir -include=*.pdf
- remote.uncache -dir=xxx/some/sub/dir -exclude=*.txt
+ remote.uncache -dir=/xxx
+ remote.uncache -dir=/xxx/some/sub/dir
+ remote.uncache -dir=/xxx/some/sub/dir -include=*.pdf
+ remote.uncache -dir=/xxx/some/sub/dir -exclude=*.txt
`
}
diff --git a/weed/shell/command_remote_unmount.go b/weed/shell/command_remote_unmount.go
index b16da44f1..b65d125aa 100644
--- a/weed/shell/command_remote_unmount.go
+++ b/weed/shell/command_remote_unmount.go
@@ -27,10 +27,10 @@ func (c *commandRemoteUnmount) Help() string {
# assume a remote storage is configured to name "s3_1"
remote.configure -name=s3_1 -type=s3 -access_key=xxx -secret_key=yyy
# mount and pull one bucket
- remote.mount -dir=xxx -remote=s3_1/bucket
+ remote.mount -dir=/xxx -remote=s3_1/bucket
# unmount the mounted directory and remove its cache
- remote.unmount -dir=xxx
+ remote.unmount -dir=/xxx
`
}