Replies: 1 comment
-
It looks like it's common for a container to have an entrypoint.sh script that includes something like
It's reasonable that backrest should support this :) please open a feature request for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running Backrest in Docker. When it creates a repo and subsequent snapshots, all file permissions of the original files are ignored and all files are owned by root when restored. How can I run Backrest in Docker and respect file permissions and
user:group
?Also, how can I run the container as a non-root user but still run
HOOK
commands withdocker
e.g.docker stop container
? If I setuser: 1000:1000
(my host user) in my compose, I get permission denied errors when running docker commands. Incidentally, I can run rclone commands. Also, when usinguser: 1000:1000
, Backrest fails on files where that user doesn't have permission inside the container.To simplify, I want to;
1000:1000
so bind mounts (/data
,/config
,/repos
etc) have the same owner as my host.user:group
.Maybe it would be possible to to have env vars
PUID
andPGID
that set the user inside the container. This user could also be added to theDocker
group inside the container?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions