Postgresql大型数据库转储
我有一个postgresql数据库存储在远程机器上,可以通过ssh访问。由于空间问题,我无法在远程服务器上存储备份(pg_转储),我想知道是否可以直接将其保存在本地计算机上?只需指定一个远程主机,如Postgresql大型数据库转储,postgresql,remote-access,pg-dump,Postgresql,Remote Access,Pg Dump,我有一个postgresql数据库存储在远程机器上,可以通过ssh访问。由于空间问题,我无法在远程服务器上存储备份(pg_转储),我想知道是否可以直接将其保存在本地计算机上?只需指定一个远程主机,如sudo-u postgres pg\u dump-a-h remote\u host-p remote\u psql\u port-u postgres-d db\u name>path\u to\u store\u backup。sqlpg\u dump是一个客户端应用程序,您可以在任何可以连接到
sudo-u postgres pg\u dump-a-h remote\u host-p remote\u psql\u port-u postgres-d db\u name>path\u to\u store\u backup。sql
pg\u dump是一个客户端应用程序,您可以在任何可以连接到您的计算机上运行它数据库服务器