mirror of
https://github.com/restic/restic.git
synced 2026-07-10 09:15:09 +00:00
server: Add config
This commit is contained in:
+2
-3
@@ -74,14 +74,13 @@ func (cmd CmdInit) Execute(args []string) error {
|
||||
}
|
||||
|
||||
s := server.NewServer(be)
|
||||
|
||||
_, err = server.CreateMasterKey(s, pw)
|
||||
err = s.CreateMasterKey(pw)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "creating key in backend at %s failed: %v\n", opts.Repo, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Printf("created restic backend %v at %s\n", s.ID()[:10], opts.Repo)
|
||||
fmt.Printf("created restic backend %v at %s\n", s.Config.ID[:10], opts.Repo)
|
||||
|
||||
fmt.Println("Please note that knowledge of your password is required to access the repository.")
|
||||
fmt.Println("Losing your password means that your data is irrecoverably lost.")
|
||||
|
||||
Reference in New Issue
Block a user