mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 07:16:40 +00:00
Fix restic s3 backend for new minio-go version
This commit is contained in:
parent
72fdd0bc09
commit
3f8da47a0c
@ -16,7 +16,7 @@ const connLimit = 10
|
|||||||
|
|
||||||
// s3 is a backend which stores the data on an S3 endpoint.
|
// s3 is a backend which stores the data on an S3 endpoint.
|
||||||
type s3 struct {
|
type s3 struct {
|
||||||
client minio.CloudStorageClient
|
client *minio.Client
|
||||||
connChan chan struct{}
|
connChan chan struct{}
|
||||||
bucketname string
|
bucketname string
|
||||||
prefix string
|
prefix string
|
||||||
@ -39,7 +39,7 @@ func Open(cfg Config) (backend.Backend, error) {
|
|||||||
debug.Log("s3.Open", "BucketExists(%v) returned err %v, trying to create the bucket", cfg.Bucket, err)
|
debug.Log("s3.Open", "BucketExists(%v) returned err %v, trying to create the bucket", cfg.Bucket, err)
|
||||||
|
|
||||||
// create new bucket with default ACL in default region
|
// create new bucket with default ACL in default region
|
||||||
err = client.MakeBucket(cfg.Bucket, "", "")
|
err = client.MakeBucket(cfg.Bucket, "")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user