📜  从 docker 容器创建 pg 转储 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:38.931000             🧑  作者: Mango

代码示例2
docker exec -i pg_container_name /bin/bash -c "PGPASSWORD=pg_password pg_dump --username pg_username database_name" > /desired/path/on/your/machine/dump.sql