Hi,
I am in the process of setting up barman and fine tuning it to what we will need in production server. My system spec is Ubuntu 14.04, Postgresql 9.1 and Barman 1.3.0.
I am using two testing servers, one hosts our database and one hosts Barman. No one is using the database server except me.I occasionally delete one record in a table in the database. I ended up deleted 3 rows and postgres generated 3 WAL files at those times. During this experiment, I found out that because a daily vacuum full is performed on the database server, Barman will copy all those WAL files generated on the primary server during that time as it is supposed to. Those WAL files generated during the vacuum process consume a lot of space in the backup server, and we really cannot afford that. (Our database is about 59GiB and those WAL files total up to 41GiB)
My question is that is there any way to either
1. disable Barman to copy those WAL files for a certain period of time, or
2. delete those WAL files after it got copied over from primary to backup server?
I can also run a cron job to delete WAL files produced between a certain time of the day, but if I do this, will it affect Barman to perform recovery since WAL are all sequentially named?
I also looked into compressing WAL files, but gzip is about 27% compression, so I will still end up with 10G of those undesired WAL files. WAL compression will help but will not solve my problem.
On the other note, I am not familiar with performing vacuum full so any input on running vacuum full daily will be appreciated. We did enable autovacuum on postgres server.
Thank you so much for your help.
Amanda