Thanks to visit codestin.com
Credit goes to github.com

Skip to content

redu prompts for password or password file, even though RESTIC_PASSWORD env variable is set #55

@rluetzner

Description

@rluetzner

This seems like it broke between 0.2.3 and 0.2.4. I guess the parameter was optional before and is now required or at least it doesn't recognize that RESTIC_PASSWORD is already set.

Here's the error message and what I did

❯  cat restic-azure.env
export AZURE_ACCOUNT_NAME="xyz"
export AZURE_ACCOUNT_KEY="azure_pass"
export RESTIC_REPOSITORY="azure:restic-repo:/"
export RESTIC_PASSWORD="repo_password"

❯  source restic-azure.env

❯  redu
error: the following required arguments were not provided:
  <--password-command <COMMAND>|--password-file <FILE>>

Usage: redu <--repo <REPO>|--repository-file <REPOSITORY_FILE>> <--password-command <COMMAND>|--password-file <FILE>>

For more information, try '--help'.

When I go back to 0.2.3 it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions