postgresql:pg_restore: [archiver] input file does not appear to be a valid archive
2012-06-15 16:55
579 查看
使用ps_restore恢复备份数据库出错:pg_restore: [archiver] input file does not appear to be a valid archive
使用
pg_dump -Fp -t mytable > mytable_back
或
g_dump -t mytable > mytable_back
备份出来的为脚本(纯文本)文件,不能直接使用pg_restore进行恢复。
需要使用命令psql \i
user>psql -U username -d mydb
username=# \i mytable_back
pg_dump和pg_restore的时候使用 格式为 custom(-F c )或tar格式(-F t)即可进行恢复
使用
pg_dump -Fp -t mytable > mytable_back
或
g_dump -t mytable > mytable_back
备份出来的为脚本(纯文本)文件,不能直接使用pg_restore进行恢复。
需要使用命令psql \i
user>psql -U username -d mydb
username=# \i mytable_back
pg_dump和pg_restore的时候使用 格式为 custom(-F c )或tar格式(-F t)即可进行恢复
相关文章推荐
- 转:postgresql:pg_restore: [archiver] input file does not appear to be a valid archive的解决方法
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- The security key for this program currently stored on your system does not appear to be valid for th
- GitHub# fatal: 'origin' does not appear to be a git repository
- VS 安装助手,弹出“The security key for this program currently stored on your system does not appear to be ”
- git push origin master fatal: 'origin' does not appear to be a git repository fatal: Could not read
- Type Archive for required library: 'C:/Users/EuphemiaShaw/.m2/repository/org/apache/hadoop/hadoop-hdfs/2.6.5/hadoop-hdfs-2.6.5.jar' in project 'mapreduce' cannot be read or is not a valid ZIP file
- R 错误: XML content does not seem to be XML: 'input.xml'
- cobbler在执行cobbler check时出现httpd does not appear to be running and proxying cobbler的解决方法
- cannot be resolved to absolute file path because it does not reside in the file system
- repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
- maven项目导入出现Type Archive for required library: XXX.jar cannot be read or is not a valid ZIP file
- archive for required library could not be read or is not a valid ZIP file
- cannot be resolved to absolute file path because it does not reside in the file system
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- cannot be resolved to absolute file path because it does not reside in the file system : jar:file:/D
- VA番茄助手提示The security key for this program currently stored on your system does not appear to be vali
- openfire安装The Openfire database schema does not appear to be installed. Follow the installation guid
- The file or directory to be published does not exist: /data/vendor/bower/jquery/dist
- Project property "XFire services.xml path" does not refer to a valid file解决办法