Skip to content
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

how to set the different chmod permissions? #25

Open
andrewjs18 opened this issue Aug 10, 2024 · 0 comments
Open

how to set the different chmod permissions? #25

andrewjs18 opened this issue Aug 10, 2024 · 0 comments

Comments

@andrewjs18
Copy link

Hi,

I'm struggling with the getting your script to dump the db with more flexible permissions than 600 so I can then have my backup server access the files with a different user/group than root.

I've tried a combination of the following commands, the first half of the command works, but the 2nd half doesn't. It doesn't seem like the POSTBACKUP variable having more than 1 command:

POSTBACKUP: "chown -R 0:1001 /backup;chmod -R 660 /backup"

after testing that and realizing it did not work, I slightly altered it to:

POSTBACKUP: "chown -R 0:1001 /backup && chmod -R 660 /backup"

Which also does not work.

Any advice or suggestions here so I can get it to set the chmod permissions of 660 after it's done running?

I'm using your latest docker image.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant