First time Restic user here. I am attempting to use the Lobaro docker container using docker compose. I am unable to get Restic to init the repository in my Backblaze account, I get a 401 error. I initially assumed I had to have the wrong ID/Key pair, so I created a new one and tried those, then another new one, then tried my master ID and key. Nothing seems to change the error. I am hoping maybe I am just doing something wrong, and someone will spot it. Here is the docker compose file I am using with the ID and key changed of course.
restic:
container_name: restic
image: lobaro/restic-backup-docker:latest
hostname: dockerserver
environment:
- RESTIC_REPOSITORY=b2:TomsResticBucket:restic/dockerserver
- RESTIC_PASSWORD=1234
- RESTIC_TAG=1234
- BACKUP_CRON=0 0 * * *
- RESTIC_FORGET_ARGS=--keep-last 10
- RESTIC_JOB_ARGS
- B2_ACCOUNT_ID=<mymasteraccountidhere>
- B2_ACCOUNT_KEY=<mymasteraccountkeyhere>
volumes:
- configdrive:/data/configs
restart: unless-stopped
This is the error I am seeing inside the contianer:
Starting container ...
Check Repo status 1
Restic repository 'b2:TomsResticBucket:restic/dockerserver' does not exists. Running restic init.
Fatal: create repository at b2:TomsResticBucket:restic/dockerserver failed: b2.NewClient: b2_authorize_account: 401:
Repo init status 1
Failed to init the repository: 'b2:TomsResticBucket:restic/dockerserver'
Any help is appreciated, thanks in advance!