working b2 sink

This commit is contained in:
Chris Lu
2018-11-04 11:58:59 -08:00
parent f050b22d6c
commit 8dfac6a4cf
6 changed files with 55 additions and 10 deletions

View File

@@ -115,6 +115,8 @@ func runFilerReplicate(cmd *Command, args []string) bool {
}
if err = replicator.Replicate(key, m); err != nil {
glog.Errorf("replicate %s: %+v", key, err)
} else {
glog.V(4).Infof("replicated %s", key)
}
}

View File

@@ -209,7 +209,7 @@ aws_access_key_id = "" # if empty, loads from the shared credentials fil
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 "/")
directory = "/" # destination directory
[sink.google_cloud_storage]
# read credentials doc at https://cloud.google.com/docs/authentication/getting-started
@@ -224,15 +224,14 @@ enabled = false
account_name = ""
account_key = ""
container = "mycontainer" # an existing container
directory = "" # destination directory (do not prefix or suffix with "/")
directory = "/" # destination directory
[sink.backblaze]
# experimental, let me know if it works
enabled = false
account_id = ""
account_key = ""
b2_account_id = ""
b2_master_application_key = ""
bucket = "mybucket" # an existing bucket
directory = "" # destination directory (do not prefix or suffix with "/")
directory = "/" # destination directory
`
)