-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom user/group/chmod of file copied in archive #114
Comments
This is probably similar to #36 If your scenario allows changing ownership / permissions after the archive has been copied, I would assume you can run |
The problem with exec-post is that I'm backuping multiple volumes from multiple containers at the same time : on which container would I put that exec-post label ? |
If I'm not mistaken, you should be able to use a |
I tried, but unfortunately the command is ran too early (for my tests, I put the label
Would have worked if |
Well I will probably burn in hell, but this did the trick: |
Interesting. I wonder if this is to be considered a bug as running the post-commands when applied to the container instance itself doesn't make much sense before GPG encryption and all other optional behavior has happened. Then again people might already rely on that behavior so another option would be adding a specific I'll have to think about this a little. |
So after that little bit of thinking ™️ this might be the best way to solve this: Instead of having one
which allows very fine grained control and would also solve the use case described in this issue. The Note to self: adding this will make implementing #95 even harder. |
@Fratt Not sure how and when this will be merged, but in case you want to test it (escape hell, too) there's a branch that is using the approach described above which you could build yourself and run. You'd have to use the |
Thanks @m90 , you're the best! I'll test it when it's been merged. |
This is now released in v2.20.0 |
Thank you, I can confirm that everything works as expected using
My soul has been saved :D |
Hello,
Is it possible to define the user/group/chmod of the file that's copied to
/backups
?It's currently
root:root
, with chmod-rw-r--r--
, but I'm trying to end up withjohn:john
with chmod-rw-r-----
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: