参考文档:
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
标签:postgres,备份,db,su,pg,sql,迁移
From: https://www.cnblogs.com/wl30564/p/17568292.html