Postgresql Backup Encryption

Started by Brajendra Pratap Singhalmost 6 years ago2 messagesgeneral
Jump to latest
#1Brajendra Pratap Singh
bpsinghjobs@gmail.com

Hi,

Please let me know the way to encrypt/decrypt the postgresql backup uaing
pg_dump and pgbackrest.

Also let me know the other good possibility if any.

Thanks,
Singh

#2Paul Förster
paul.foerster@gmail.com
In reply to: Brajendra Pratap Singh (#1)
Re: Postgresql Backup Encryption

Hi Singh,

On 10. Jul, 2020, at 07:29, Brajendra Pratap Singh <bpsinghjobs@gmail.com> wrote:

Hi,

Please let me know the way to encrypt/decrypt the postgresql backup uaing pg_dump and pgbackrest.

Also let me know the other good possibility if any.

Thanks,
Singh

don't use the -f option with pg_dump and simply pipe the output through your favorite encryption tool. Or use -f option and after pg_dump finishes, encrypt the resulting dump file. These are the two options you have. There is no direct command line option to encrypt pg_dump's output.

https://www.postgresql.org/docs/current/app-pgdump.html

Cheers,
Paul