mirror of
https://github.com/restic/restic.git
synced 2024-12-26 09:47:49 +00:00
init: use Create method for rclone backend
This properly issues the initial repository creation command Fixes #1896
This commit is contained in:
parent
429f97b887
commit
9333f707fa
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ func create(s string, opts options.Options) (restic.Backend, error) {
|
||||||
case "rest":
|
case "rest":
|
||||||
return rest.Create(cfg.(rest.Config), rt)
|
return rest.Create(cfg.(rest.Config), rt)
|
||||||
case "rclone":
|
case "rclone":
|
||||||
return rclone.Open(cfg.(rclone.Config), nil)
|
return rclone.Create(cfg.(rclone.Config))
|
||||||
}
|
}
|
||||||
|
|
||||||
debug.Log("invalid repository scheme: %v", s)
|
debug.Log("invalid repository scheme: %v", s)
|
||||||
|
|
Loading…
Reference in a new issue