From 9333f707fa4b1e0f811bccf341cc695fed942a7f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 10 Apr 2020 12:11:06 +0200 Subject: [PATCH] init: use Create method for rclone backend This properly issues the initial repository creation command Fixes #1896 --- cmd/restic/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 7b917d5aa..54668d7af 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -742,7 +742,7 @@ func create(s string, opts options.Options) (restic.Backend, error) { case "rest": return rest.Create(cfg.(rest.Config), rt) case "rclone": - return rclone.Open(cfg.(rclone.Config), nil) + return rclone.Create(cfg.(rclone.Config)) } debug.Log("invalid repository scheme: %v", s)