Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    you're running it through sudo, and it can well filter away environment variables. Try e.g. export BORG_PASSPHRASE=test; sudo sh -c 'echo $BORG_PASSPHRASE' to see if it prints anything. Also I can't see you set BORG_OPTS anywhere, even though the second script uses it Commented Sep 7, 2021 at 20:20
  • 1
    Possibly related: JAVA_HOME not set in script when run using sudo Commented Sep 7, 2021 at 20:21