转:postgresql:pg_restore: [archiver] input file does not appear to be a valid archive的解决方法
2013-10-28 11:07
786 查看
使用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)即可进行恢复
来自于:http://blog.csdn.net/tianzhu123/article/details/7666991
使用
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)即可进行恢复
来自于:http://blog.csdn.net/tianzhu123/article/details/7666991
相关文章推荐
- postgresql:pg_restore: [archiver] input file does not appear to be a valid archive
- cobbler在执行cobbler check时出现httpd does not appear to be running and proxying cobbler的解决方法
- cobbler在执行cobbler check时出现httpd does not appear to be running and proxying cobbler的解决方法
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- 关于调用listFile()在遍历含有乱码文件时出现input is not valid Modified UTF-8错误的解决方法
- [Centos] mod_wsgi 安装流程以及遇到问题解决办法。apxs: command not found 或 Sorry, Python developer package does not appear to be installed.
- Project property "XFire services.xml path" does not refer to a valid file解决办法
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist 解决方法
- CentOS:Device eth0 does not seem to be present 问题解决方法
- The security key for this program currently stored on your system does not appear to be valid for th
- Device eth0 does not seem to be present,delaying initialization解决方法
- Project property "XFire services.xml path" does not refer to a valid file问题解决
- ERROR: Unable to launch the RTL Schematic process. The input NGR file, Can not fnd the module的解决方法
- VirtualBox复制CentOS后提示Device eth0 does not seem to be present的解决方法
- centos dhcp获取不到ip解决方法 Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization.
- CentOS:Device eth0 does not seem to be present 问题解决方法
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions异常原因及解决方法
- Centos 6.5 Bringing up interface eth3 Device eth3 does not seem to be present 解决方法
- sc.textFile("file:///home/spark/data.txt") Input path does not exist解决方法——submit 加参数 --master local 即可解决
- [centos] Linux下"Device eth0 does not seem to be present,delaying initialization."问题解决方法.