We are backing up 1TB+ of postgres database using barman. Barman is backing up full database daily. Every day we are dumping 1TB+ database. So it's consuming huge space. We have following configuration in barman:(broad - level config)
backup_method=rsync
compression=pzip
reuse_backup=copy
Due to hardware constraint we can't use reuse_backup=link, means we can't take incremental backup.
We don't know even after setting up compression=pzip, why barman is not compressing the backup.
So what we want is that, can we have a post script which will compress the database backup or any other option to compress the backup taken using barman.
Version details: Barman : ver2.12 Postgresql:13 OS: Ubuntu 20.04
Thanks in advance.
pgbarman does not do what you want. Maybe you can look into something else, like pgbackrest. (I have no experience using that, but the description I've read makes it sound like it works for this).
With barman, you could compress the backup after the fact. You could even do that automatically, with something like:
But, that will interfere with the
reuse=copyconfiguration. Also, you would have to decompress it before using for restoration purposes (maybe withpre_recovery_script). And even then, you do still need the entire backup completely on disk before you can initiate compression on it.