分类: Mysql/postgreSQL
2016-03-08 09:52:02
-F, --format=c|t|p output file format (custom, tar, plain text)
$ pg_dump -t member -Uszlsd -W szlsd_db -f /gpbackup/member.dmp
$ pg_restore -d szlsd_db /gpbackup/member.dmp
pg_restore: [archiver] input file does not appear to be a valid archive
$ pg_dump -t member -Fc -Uszlsd -W szlsd_db -f /gpbackup/member_c.dmp
$ pg_restore -d szlsd_db /gpbackup/member_c.dmp