Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql大型数据库转储_Postgresql_Remote Access_Pg Dump - Fatal编程技术网

Postgresql大型数据库转储

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是一个客户端应用程序,您可以在任何可以连接到

我有一个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。sql
pg\u dump是一个客户端应用程序,您可以在任何可以连接到您的计算机上运行它数据库服务器