Skip to content

Set permission for dump files #132

@arnobnq

Description

@arnobnq

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.

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