Merge pull request #1046 from restic/s3-split-open

s3: Split Create() from Open()
This commit is contained in:
Alexander Neumann
2017-06-19 19:52:40 +02:00
3 changed files with 21 additions and 10 deletions

View File

@@ -471,7 +471,7 @@ func create(s string, opts options.Options) (restic.Backend, error) {
case "sftp":
return sftp.Create(cfg.(sftp.Config))
case "s3":
return s3.Open(cfg.(s3.Config))
return s3.Create(cfg.(s3.Config))
case "swift":
return swift.Open(cfg.(swift.Config))
case "b2":