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

Set permission for dump files #132

Open
arnobnq opened this issue Oct 31, 2024 · 0 comments
Open

Set permission for dump files #132

arnobnq opened this issue Oct 31, 2024 · 0 comments

Comments

@arnobnq
Copy link

arnobnq commented Oct 31, 2024

Hi,

I don't see how one can alter the permissions of the dump files produced by pg_back. Changing the value of umask doesn't seem to have an effect, dump files have mod 0600 regardless of the current umask value :

[postgres@pg1 ~]$ umask
0000
[postgres@-pg1 ~]$ pg_back 
2024/10/31 10:09:04 INFO: dumping globals
2024/10/31 10:09:04 INFO: dumping instance configuration
2024/10/31 10:09:04 INFO: dumping database postgres
2024/10/31 10:09:04 INFO: dump of postgres to /var/backups/postgresql/postgres_2024-10-31T10:09:04Z.dump done
2024/10/31 10:09:04 INFO: waiting for postprocessing to complete
2024/10/31 10:09:04 INFO: purging old dumps
[postgres@-pg1 ~]$ ls -l /var/backups/postgresql/postgres_2024-10-31T10:09:04Z.dump
-rw-------. 1 postgres users 1008 Oct 31 10:09 /var/backups/postgresql/postgres_2024-10-31T10:09:04Z.dump

Have I missed something ?

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