In this article, we will see Point in Time Recovery(PITR) in PostgreSQL 12/13 versions step by step procedure.
What is Point in Time Recovery?
Assume that we have full(basebackup) backup at midnight at 12:00AM and at 7:20AM some server crash happened due to various reasons. In this scenario WAL(write-ahead-log(transaction log) comes into picture. To restore up to 7:20AM, first we need to restore full backup (backup taken by using pg_basebackup) and then we have to replay WAL files. This restore process is nothing but PITR(Point time recovery).
Environment details:
Linux server: Ubuntu
PostgreSQL server version: 12/13
Continue reading Point in Time Recovery(PITR) in PostgreSQL 12/13