From 441f4deb66b0ded1f2dcd1deae6052eaee7e7902 Mon Sep 17 00:00:00 2001 From: Florian Weingarten Date: Fri, 24 Apr 2015 19:08:05 -0400 Subject: [PATCH] remember your password --- cmd/restic/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/restic/main.go b/cmd/restic/main.go index bca231fb1..53b640c64 100644 --- a/cmd/restic/main.go +++ b/cmd/restic/main.go @@ -34,7 +34,6 @@ func errx(code int, format string, data ...interface{}) { } func readPassword(env string, prompt string) string { - if env != "" { p := os.Getenv(env) @@ -83,6 +82,9 @@ func (cmd CmdInit) Execute(args []string) error { fmt.Printf("created restic backend %v at %s\n", s.ID(), 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.") + return nil }