diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-10-03 23:36:52 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-10-03 23:36:52 -0700 |
| commit | e8ef501f02217d29e35f4a52c86be3d93939ae6f (patch) | |
| tree | 8f2785b8dc1187c4a1b5a7336d189dc43ec35009 /weed/command/scaffold.go | |
| parent | 56a5d5af8d627e513cbfa3c89f6159646fb07d49 (diff) | |
| download | seaweedfs-e8ef501f02217d29e35f4a52c86be3d93939ae6f.tar.xz seaweedfs-e8ef501f02217d29e35f4a52c86be3d93939ae6f.zip | |
add s3 replication sink
Diffstat (limited to 'weed/command/scaffold.go')
| -rw-r--r-- | weed/command/scaffold.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index 321b50424..e0bd48c8c 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -161,7 +161,7 @@ grpcAddress = "localhost:18888" directory = "/buckets" # all files under this directory tree are replicated [notification.kafka] -enabled = true +enabled = false hosts = [ "localhost:9092" ] @@ -170,12 +170,22 @@ offsetFile = "./last.offset" offsetSaveIntervalSeconds = 10 [sink.filer] -enabled = true +enabled = false grpcAddress = "localhost:18888" directory = "/backup" # all replicated files are under this directory tree replication = "" collection = "" ttlSec = 0 +[sink.s3] +# See https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html +# default loads credentials from the shared credentials file (~/.aws/credentials). +enabled = false +aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials). +aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials). +region = "us-east-2" +bucket = "your_bucket_name" # an existing bucket +directory = "" # destination directory (do not prefix or suffix with "/") + ` ) |
