Skip to content

I can run /bin/restic_backup.sh without issue, but the restic-backup service fails to connect to the b2 container #134

Answered by cpeterp
cpeterp asked this question in Q&A
Discussion options

You must be logged in to vote

I discovered the issue was with restic (as well as my own oversight). It looks like restic no longer reccomends using the b2 interface and instead recommends using the s3 protocol. While I had set my RESTIC_REPOSITORY variable to the s3 endpoint of the bucket, restic saw the B2_ACCOUNT_ID and B2_ACCOUNT_KEY, which I guess confused it.

I replaced the B2_ACCOUNT_ID and B2_ACCOUNT_KEY variables with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY respectively and its working as expected now. Originally, it had worked because I had these variables set in my bash, so my first backup worked.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cpeterp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant