无独有偶phpBB论坛https://u2o.org/
https://u2o.org/viewtopic.php?t=175
代码: 全选
docker compose exec db pg_dump -Fc dbname -U username > db.dump
docker compose exec -T db pg_restore -U username -d dbname < db.dump