1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 17:27:25 +00:00

remember your password

This commit is contained in:
Florian Weingarten 2015-04-24 19:08:05 -04:00
parent 61d1f6ad18
commit 441f4deb66

View file

@ -34,7 +34,6 @@ func errx(code int, format string, data ...interface{}) {
} }
func readPassword(env string, prompt string) string { func readPassword(env string, prompt string) string {
if env != "" { if env != "" {
p := os.Getenv(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.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 return nil
} }