Open robertstrom opened 3 months ago
The docker compose file defines 3 different services, and you need to define the volume attachments for every service. So you need to add the volumes
section to the prune
and check
sections as well.
The docker compose file defines 3 different services, and you need to define the volume attachments for every service. So you need to add the
volumes
section to theprune
andcheck
sections as well.
I have made the modification and added the volumes
section to the prune
and check
sections and that appears to be working now.
As I mentioned, I copied the basic docker-compose.yaml file from a functioning Backblaze backup that I have configured using this project. Everything about that backup
, prune
, and check
is working without any errors for the Backblaze backup and there are no entries for the volumes
in the prune
or check
sections of the docker-compose.yaml file for that backup. I'm curious why there is a difference.
Thanks for the response! I've played around with Docker some but this project has helped me learn more about using Docker and it has helped me take a fairly crappy backup solution for my QNAP NAS and turn it into a robust and reliable solution.
Thanks for the great project!
check
and prune
both only need access to the repository. In the backblaze case, it's a remote repository so no docker volume is needed.
I have two working backups using these docker containers. One fully working backup to Backblaze using S3 buckets and one partially working that backs up the same data to an external direct attached storage NAS.
The containers are both running on the same QNAP NAS.
When I say fully working above I mean that all three containers / container functions (backup, prune, and check) are starting and working without error. The partially working scenario is backing up without issue but both the prune and check containers are having issues finding the repository config file.
Here is what the functioning backup logs to the external direct attached NAS look like:
This log, and the resulting backup, appears to clearly show that the repository (and therefor the config file) has been found.
Here is what the logs look like for the check container:
Here is what the logs look like for the prune container:
Yet I can run both the check and prune jobs successfully, manually, from the command line.
Running the check job manually:
Running the prune job manually:
Here is a screenshot showing the config file that cannot be found:
My docker compose file looks like this:
This job was created by copying the known working Backblaze docker-compose.yaml file and then modifying it to point to the external direct attached storage. The backup to the external storage works fine. I have tested mounting the backup on the external storage and navigating the backup file structure. It is only the prune and check portions of this that are not working.
I have been over the docker-compose.yaml file many, many times and I cannot find anything wrong with it.
Can someone, anyone, please tell me if there is something wrong with my configuration or if there is some bug that is causing this issue?
Thanks!