Il 20/03/2017 17:45, Ben Chobot ha
scritto:
Hmmm... I went back in the docs and noticed I missed something. To achieve PITR, the cluster needs to checkpoint, and this can be obtained with the pg_start_backup() function... so if I try to get a snapshot and start a recover (creating recovery.conf etc.) it will not even start recovery, right? Now I'm gonna try 2 approaches: 1. (straightforward) barman with basebackup and WAL archiving 2. (GoogleCloud-oriented) disk snapshot between pg_start_backup and pg_stop_backup (so the snapshot is taken just after the checkpoint), WAL archiving I will report the results. That's right, my (wrong) thought was to have a snapshot per day and all 14 days worth of WALs, but after the meeting with the Google Specialist, I'm oriented to make a base backup per day and then store it on Nearline, making it expire after 14 days. Same for WAL files. I totally agree... that's why I'm here. I don't want to prepare a backup strategy when I already need to recover.... Thanks Moreno. |