Skip to content

how to set the different chmod permissions? #25

@andrewjs18

Description

@andrewjs18

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions