diff --git a/src/restic/backend/s3/s3.go b/src/restic/backend/s3/s3.go
index 484bfe733..a06d4a7f5 100644
--- a/src/restic/backend/s3/s3.go
+++ b/src/restic/backend/s3/s3.go
@@ -27,7 +27,7 @@ type s3 struct {
 func Open(cfg Config) (backend.Backend, error) {
 	debug.Log("s3.Open", "open, config %#v", cfg)
 
-	client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, cfg.UseHTTP)
+	client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP)
 	if err != nil {
 		return nil, err
 	}