C:\Program Files\PostgreSQL\9.2\bin>
备份
pg_dump --host localhost --port 5432 --username "postgres" --format custom --blobs --verbose --file "C:\%date:~0,4%-%date:~5,2%-%date:~8,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%.dump" xian
还原
pg_restore.exe -h10.10.6.145 -Upostgres -dxian -v "D:\xian-map\doc\gis地图数据库表\2021-09-02-11-59-28.dump"