borgmatic-collective / docker-borgmatic

Borgmatic in Docker
GNU General Public License v3.0
341 stars 92 forks source link

different names used for .borgmatic in ".env" and "docker-compose.yml" #197

Open Carunga opened 1 year ago

Carunga commented 1 year ago

If starting up the container for the first time there will be an error message caused by different names in the .env (VOLUME_DOT_BORGMATIC) and docker-compose.yml (VOLUME_BORGMATIC_STATE). Simply changing the name in one file worked for me.

witten commented 1 year ago

Sorry for the lengthy delay here. If it's still happening, can you provide the error message you're seeing, along with the command you're running to get it? Seeing your .env and docker-compose.yml file contents would be helpful too. Thanks!

jetchirag commented 1 year ago

@witten I was just testing it and experienced it too. If you check the docker compose file in base flavour, you'll find

- ${VOLUME_BORGMATIC_STATE}:/root/.borgmatic # borgmatic state files

on Line 10. However .env.template file uses variable VOLUME_DOT_BORGMATIC=./data/.borgmatic

Also the doc mentions it's depreciated

witten commented 1 year ago

Thanks, that looks like an easy fix. The path is currently deprecated, but it's possible it will become un-deprecated at some point...