PostgreSQL 备份与恢复:pg_dump、pg_restore 与 PITR逻辑备份与恢复pg_dump -U postgres -d app -F c -f app.dump pg_restore -U postgres -d app_restored -c app.dump 时间点恢复(简述)执行 base backup:`pg_basebackup -D /backup/base -X stream -U repl`配置 `restore.conf` 或 `recovery.signal` 指定 WAL 归档与目标时间启动实例进行 PITR 到目标时间点总结逻辑备份适合迁移与子集恢复,PITR 保障关键数据在故障后的时间点回滚能力。

发表评论 取消回复