📅  最后修改于: 2022-03-11 15:04:58.309000             🧑  作者: Mango
docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
cat your_dump.sql | docker exec -i your-db-container psql -U postgres