cupcakearmy / autorestic

Config driven, easy backup cli for restic.
https://autorestic.vercel.app/
Apache License 2.0
1.27k stars 71 forks source link

Error when running as docker container #380

Open r3nor opened 3 months ago

r3nor commented 3 months ago

Describe the bug autorestic works perfectly fine on the local host, but when I use the exact same config in the docker image, it fails without any apparent reason...

Expected behavior Work the same out and in the docker image.

Environment

Additional context

The docker output, note that it tries to initialize, but the repo is already initialized and contains backups. It was initialized with a check from the autorestic binary on the host.

❯ docker run --rm \
              -v /var/www:/var/www \
              -v $(pwd)/autorestic.yml:/data/autorestic.yml \
              -v $(pwd)/.autorestic.env:/data/.autorestic.env \
              cupcakearmy/autorestic \
              autorestic -c /data/autorestic.yml check

Using config:    /data/autorestic.yml
Using env:       /data/.autorestic.env
Using lock:      /data/.autorestic.lock.yml
Initializing backend "backblaze"...
Error: exit status 1

The host output:

❯ autorestic -c ./autorestic.yml check
Using config:    /home/autorestic/autorestic.yml
Using env:       /home/autorestic/.autorestic.env
Using lock:      .autorestic.lock.yml
Everything is fine.