<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://kb.owrench.com/index.php?action=history&amp;feed=atom&amp;title=Backup_restore_issues</id>
	<title>Backup restore issues - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://kb.owrench.com/index.php?action=history&amp;feed=atom&amp;title=Backup_restore_issues"/>
	<link rel="alternate" type="text/html" href="http://kb.owrench.com/index.php?title=Backup_restore_issues&amp;action=history"/>
	<updated>2026-05-04T04:27:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://kb.owrench.com/index.php?title=Backup_restore_issues&amp;diff=101&amp;oldid=prev</id>
		<title>imported&gt;Kishor: Created page with &quot;Postgres databases are mostly backed up in the format tar and there won't be any issues in restoring them under normal circumstances.&lt;br&gt;  &lt;b&gt;Error: 1 ,&lt;/b&gt; when the pg_restor...&quot;</title>
		<link rel="alternate" type="text/html" href="http://kb.owrench.com/index.php?title=Backup_restore_issues&amp;diff=101&amp;oldid=prev"/>
		<updated>2017-06-27T10:31:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Postgres databases are mostly backed up in the format tar and there won&amp;#039;t be any issues in restoring them under normal circumstances.&amp;lt;br&amp;gt;  &amp;lt;b&amp;gt;Error: 1 ,&amp;lt;/b&amp;gt; when the pg_restor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Postgres databases are mostly backed up in the format tar and there won't be any issues in restoring them under normal circumstances.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error: 1 ,&amp;lt;/b&amp;gt; when the pg_restore command is run, it will throw &amp;quot;unsupported version&amp;quot; error. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
In this case, please verify if the postgres version of the source(remote) server and the target(local) server are the same. &amp;lt;br&amp;gt;&lt;br /&gt;
If the versions are different, tar(custom) formats will not be supported (there is backward compatibility though). &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resolution: &amp;lt;br&amp;gt;&lt;br /&gt;
Use the plain text format instead of custom formats for pg_dump and pg_restore commands. The usage of these commands are explained in the following page: http://192.168.1.103/mediawikisb/index.php/Postgres_basics &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error: 2 &amp;lt;/b&amp;gt;, connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host localhost&amp;lt;br&amp;gt;&lt;br /&gt;
Add or edit the following line in your postgresql.conf :&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
listen_addresses = '*'&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or you can try changing the restore command by providing localhost instead of 127.0.0.1 as argument. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:it-support]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Kishor</name></author>
		
	</entry>
</feed>