Question 1
I've had a discussion here about this as well as some related issues, but I've noticed that my container exits after the initial backup job. This is certainly non-ideal as one would be expecting their data to be regularly backed up, only to find their resticker container exited months prior and they've lost all their data.
My hypothesis is that the container exits if restic returns a non-zero outcome. I assume this is the case because my initial (i.e., startup backup job) ends with:
processed 6131477 files, 12.343 TiB in 3:19
snapshot a5a4f8d saved
Warning: at least one source file could not be read
Backup incomplete
Finished backup at 2025-04-02 15:34:44 after 205 seconds
and the container seems to be down. My expectation is that the backup job would continue despite errors in the backup job. Or at least continue for non-fatal errors (like the one above, where a few files in the source had permissions that were not owned by my user).
Question 2
A related question is, how do I run the container or the restic process as root? I want to ensure the source files are copied properly and with the correct owners/permissions, which only the root user would be able to do. I see some of my other docker containers/services running as the non-1000 user (and even as root), so I'm guessing there should be a way to start this container as root so it can access/backup all files it encounters (and without having to run all my docker containers as sudo a la sudo docker compose up -d).
Question 1
I've had a discussion here about this as well as some related issues, but I've noticed that my container exits after the initial backup job. This is certainly non-ideal as one would be expecting their data to be regularly backed up, only to find their
restickercontainer exited months prior and they've lost all their data.My hypothesis is that the container exits if
resticreturns a non-zero outcome. I assume this is the case because my initial (i.e., startup backup job) ends with:and the container seems to be down. My expectation is that the backup job would continue despite errors in the backup job. Or at least continue for non-fatal errors (like the one above, where a few files in the source had permissions that were not owned by my user).
Question 2
A related question is, how do I run the container or the restic process as root? I want to ensure the source files are copied properly and with the correct owners/permissions, which only the root user would be able to do. I see some of my other docker containers/services running as the non-1000 user (and even as root), so I'm guessing there should be a way to start this container as root so it can access/backup all files it encounters (and without having to run all my docker containers as sudo a la
sudo docker compose up -d).