A few scripts are run through systemd and require the $BWS_ACCESS_TOKEN secret. Create bws-access-token-env file that assigns $BWS_ACCESS_TOKEN to the value of your BitWarden Secrets Manager Access Token.
- Get the
bwsCLI from the Bitwarden SDK GitHub releases page. - Move the
bwsfile to/usr/local/bin sucd ~touch bws-access-token-env- Go to the Bitwarden Secrets Manager website.
- (Optional) Go to the machine accounts section and revoke any existing machine accounts.
- Press "+New" button.
- Create a new machine account.
echo "BWS_ACCESS_TOKEN=<YOUR_ACCESS_TOKEN>" > bws-access-token-envexit
Source: Baeldung Linux
The initialise-home-backup.sh script is meant to be run as root when initialising kopia in the root user's home directory. Use sudo.