vi postgresql.auto.conf
#restore_command = 'pgbackrest --stanza=node01 archive-get %f "%p"'
启动
pg_ctl -D $PGDATA start
常见报错
1.从库备份报错:WAL segmen was not archived before the 60000ms timeout,如果ssh互信配置无问题,通常是主库配置的repo1-host 未指向 repo所在IP,非共享文件夹备份,主库配置文件需要repo1-host,且主库不能执行备份,从库配置pg1_host,pg2_host