diff options
| author | chrislu <chris.lu@gmail.com> | 2021-12-13 13:14:36 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2021-12-13 13:14:36 -0800 |
| commit | 316f326464961272ad4acba58fb93ce816af16e4 (patch) | |
| tree | fe11db1a6d6bb7d8112f7dced5e483401ffcfdd3 | |
| parent | adfc1e0559ed9b1f4b3c9a026af4dafe9aa97206 (diff) | |
| download | seaweedfs-316f326464961272ad4acba58fb93ce816af16e4.tar.xz seaweedfs-316f326464961272ad4acba58fb93ce816af16e4.zip | |
add more help message
| -rw-r--r-- | weed/command/filer_remote_sync.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weed/command/filer_remote_sync.go b/weed/command/filer_remote_sync.go index c55544925..bceeb097e 100644 --- a/weed/command/filer_remote_sync.go +++ b/weed/command/filer_remote_sync.go @@ -40,7 +40,7 @@ func init() { remoteSyncOptions.filerAddress = cmdFilerRemoteSynchronize.Flag.String("filer", "localhost:8888", "filer of the SeaweedFS cluster") remoteSyncOptions.dir = cmdFilerRemoteSynchronize.Flag.String("dir", "", "a mounted directory on filer") remoteSyncOptions.readChunkFromFiler = cmdFilerRemoteSynchronize.Flag.Bool("filerProxy", false, "read file chunks from filer instead of volume servers") - remoteSyncOptions.timeAgo = cmdFilerRemoteSynchronize.Flag.Duration("timeAgo", 0, "start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"") + remoteSyncOptions.timeAgo = cmdFilerRemoteSynchronize.Flag.Duration("timeAgo", 0, "start time before now, skipping previous metadata changes. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"") } var cmdFilerRemoteSynchronize = &Command{ @@ -54,6 +54,11 @@ var cmdFilerRemoteSynchronize = &Command{ weed filer.remote.sync -dir=/mount/s3_on_cloud + The metadata sync starting time is determined with the following priority order: + 1. specified by timeAgo + 2. last sync timestamp for this directory + 3. directory creation time + `, } |
