参考文档:
https://blog.csdn.net/qq_42346659/article/details/127182987
备份
完全备份
su - postgres
$ pg_dumpall >pg_all.sql
恢复
su - postgres
psql -f /tmp/pg_all.sql
systemctl restart postgresql-14
参考文档:
https://blog.csdn.net/qq_42346659/article/details/127182987
完全备份
su - postgres
$ pg_dumpall >pg_all.sql
su - postgres
psql -f /tmp/pg_all.sql
systemctl restart postgresql-14