PG 13基于时间点恢复
1.初始化数据 postgres=# create database tdb01; CREATE DATABASE postgres=# \c tdb01 tdb01=# create table t1(id serial primary key,uname varchar(20)); CREATE TABLE insert into t1 (uname) values ('mia'); insert into t1 (uname) values ('pg'); insert into t1 (uname) values ('redis'); tdb01=# select * from t1; id | uname ----+------- 1 | mia 2 | pg 3 | redis (3 rows) tdb01=# select now(); now //------------------------------- 2020-10-10 22:23:02.741721+08 (1 row) tdb01=# tdb01=# tdb01=# tdb01=# select now(); now //------------------------------- 2020-10-10 22:23:14.938469+08 (1 row) tdb01=# 2、创建基础备份 $ pg