f.StringVarP(&opts.LegacyRepositoryFile,"repository-file2","",os.Getenv("RESTIC_REPOSITORY_FILE2"),"`file` from which to read the "+repoPrefix+" repository location "+repoUsage+" (default: $RESTIC_REPOSITORY_FILE2)")
f.StringVarP(&opts.LegacyPasswordFile,"password-file2","",os.Getenv("RESTIC_PASSWORD_FILE2"),"`file` to read the "+repoPrefix+" repository password from (default: $RESTIC_PASSWORD_FILE2)")
f.StringVarP(&opts.LegacyKeyHint,"key-hint2","",os.Getenv("RESTIC_KEY_HINT2"),"key ID of key to try decrypting the "+repoPrefix+" repository first (default: $RESTIC_KEY_HINT2)")
f.StringVarP(&opts.LegacyPasswordCommand,"password-command2","",os.Getenv("RESTIC_PASSWORD_COMMAND2"),"shell `command` to obtain the "+repoPrefix+" repository password from (default: $RESTIC_PASSWORD_COMMAND2)")
// hide repo2 options
_=f.MarkDeprecated("repo2","use --repo or --from-repo instead")
_=f.MarkDeprecated("repository-file2","use --repository-file or --from-repository-file instead")
f.StringVarP(&opts.RepositoryFile,"from-repository-file","",os.Getenv("RESTIC_FROM_REPOSITORY_FILE"),"`file` from which to read the source repository location "+repoUsage+" (default: $RESTIC_FROM_REPOSITORY_FILE)")
f.StringVarP(&opts.PasswordFile,"from-password-file","",os.Getenv("RESTIC_FROM_PASSWORD_FILE2"),"`file` to read the source repository password from (default: $RESTIC_FROM_PASSWORD_FILE)")
f.StringVarP(&opts.KeyHint,"from-key-hint","",os.Getenv("RESTIC_FROM_KEY_HINT"),"key ID of key to try decrypting the source repository first (default: $RESTIC_FROM_KEY_HINT)")
f.StringVarP(&opts.PasswordCommand,"from-password-command","",os.Getenv("RESTIC_FROM_PASSWORD_COMMAND"),"shell `command` to obtain the source repository password from (default: $RESTIC_FROM_PASSWORD_COMMAND)")