aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_gateway.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-15 23:04:16 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-15 23:04:16 -0700
commit94a01fcfcb473057028c6e24b49032f0897be958 (patch)
treecfa521e79ad466e42fe382cc537e6b3d69ea2bdd /weed/command/filer_remote_gateway.go
parentb5f49104124aac262d75742577c13a946505df1c (diff)
downloadseaweedfs-94a01fcfcb473057028c6e24b49032f0897be958.tar.xz
seaweedfs-94a01fcfcb473057028c6e24b49032f0897be958.zip
filer.remote.gateway: add options to include or exclude new bucket names to mirror
Diffstat (limited to 'weed/command/filer_remote_gateway.go')
-rw-r--r--weed/command/filer_remote_gateway.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/filer_remote_gateway.go b/weed/command/filer_remote_gateway.go
index 1b44f31ce..be5ab3fe2 100644
--- a/weed/command/filer_remote_gateway.go
+++ b/weed/command/filer_remote_gateway.go
@@ -22,6 +22,8 @@ type RemoteGatewayOptions struct {
timeAgo *time.Duration
createBucketAt *string
createBucketRandomSuffix *bool
+ include *string
+ exclude *string
mappings *remote_pb.RemoteStorageMapping
remoteConfs map[string]*remote_pb.RemoteConf
@@ -50,6 +52,8 @@ func init() {
remoteGatewayOptions.createBucketRandomSuffix = cmdFilerRemoteGateway.Flag.Bool("createBucketWithRandomSuffix", true, "add randomized suffix to bucket name to avoid conflicts")
remoteGatewayOptions.readChunkFromFiler = cmdFilerRemoteGateway.Flag.Bool("filerProxy", false, "read file chunks from filer instead of volume servers")
remoteGatewayOptions.timeAgo = cmdFilerRemoteGateway.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\"")
+ remoteGatewayOptions.include = cmdFilerRemoteGateway.Flag.String("include", "", "pattens of new bucket names, e.g., s3*")
+ remoteGatewayOptions.exclude = cmdFilerRemoteGateway.Flag.String("exclude", "", "pattens of new bucket names, e.g., local*")
}
var cmdFilerRemoteGateway = &Command{