aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-21 02:17:10 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-21 02:17:10 -0700
commit2158d4fe4d613fcb17ca4f59ea2ebd4e5cd97bbb (patch)
tree35336d9af446affd1b148cb90ae05c3d06e78c68
parent69442d220beb6e1711a87acf4035d4d4ee6f984e (diff)
downloadseaweedfs-2158d4fe4d613fcb17ca4f59ea2ebd4e5cd97bbb.tar.xz
seaweedfs-2158d4fe4d613fcb17ca4f59ea2ebd4e5cd97bbb.zip
adjust help message
-rw-r--r--weed/shell/command_remote_cache.go5
-rw-r--r--weed/shell/command_remote_uncache.go2
2 files changed, 6 insertions, 1 deletions
diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go
index f032239f3..abd53461b 100644
--- a/weed/shell/command_remote_cache.go
+++ b/weed/shell/command_remote_cache.go
@@ -32,11 +32,14 @@ func (c *commandRemoteCache) Help() string {
remote.cache -dir=/xxx
remote.cache -dir=/xxx/some/sub/dir
remote.cache -dir=/xxx/some/sub/dir -include=*.pdf
+ remote.cache -dir=/xxx/some/sub/dir -exclude=*.txt
+ remote.cache -maxSize=1024000 # cache files smaller than 100K
+ remote.cache -maxAge=3600 # cache files less than 1 hour old
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.
- The actual data copying goes through volume severs.
+ The actual data copying goes through volume severs in parallel.
`
}
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go
index 0e5152f78..ac7e44a7d 100644
--- a/weed/shell/command_remote_uncache.go
+++ b/weed/shell/command_remote_uncache.go
@@ -33,6 +33,8 @@ func (c *commandRemoteUncache) Help() string {
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 -minSize=1024000 # uncache files larger than 100K
+ remote.uncache -minAge=3600 # uncache files older than 1 hour
`
}