<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Postgres restore - users?]]></title>
		<link>https://forum.iredmail.org/topic21235-postgres-restore-users.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21235.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Postgres restore - users?.]]></description>
		<lastBuildDate>Thu, 05 Nov 2026 15:40:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Postgres restore - users?]]></title>
			<link>https://forum.iredmail.org/post92322.html#p92322</link>
			<description><![CDATA[<p>Thanks for sharing the workaround, @Nameless! Using pg_upgradecluster saved me a lot of pain trying to manually dump/restore roles and table ownerships.</p>]]></description>
			<author><![CDATA[null@example.com (vocesa3966)]]></author>
			<pubDate>Thu, 05 Nov 2026 15:40:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92322.html#p92322</guid>
		</item>
		<item>
			<title><![CDATA[Re: Postgres restore - users?]]></title>
			<link>https://forum.iredmail.org/post92317.html#p92317</link>
			<description><![CDATA[<p>In the end, I managed to do this by running</p><div class="codebox"><pre><code># pg_upgradecluster --method=upgrade -v 13 9.6 main</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Nameless)]]></author>
			<pubDate>Fri, 30 Oct 2026 20:12:56 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92317.html#p92317</guid>
		</item>
		<item>
			<title><![CDATA[Postgres restore - users?]]></title>
			<link>https://forum.iredmail.org/post92303.html#p92303</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.7.3<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer (iRedmail 0.9.X or somesuch)<br />- Linux/BSD distribution name and version: Debian bullseye<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Hello!</p><p>On my server I have both postgresql-9.6 and postgresql-13 installed. 9.6 has all my iRedMail data since I installed iRedMail a really long time ago, on version 0.9.X, and have upgraded all the way to 1.7.3 (and plan to upgrade further once I solve this issue).</p><p>I would like to move my data to postgresql-13, and since I have the dumps from the daily backup, I&#039;m trying to restore those into postgresql-13. I&#039;ve found the latest backup, bunzipped some of the files and tried to restore them using the psql command.</p><p>However, I don&#039;t know how I can restore the user accounts, and that is preventing me from eg. restoring the vmail database, since the dump references the vmailadmin account several times (it&#039;s trying to make it the owner of every table it creates). </p><p>How can I restore the same users I have on the old database, to the new database? And how can I make sure to move everything into the new database?</p><p>I&#039;ve found the <a href="https://docs.iredmail.org/backup.restore.html">Backup and restore</a> page, but that one seems to only discuss MySQL, and only briefly (I gather from that page that if I was using MySQL, copying the mysql database would copy the users and passwords, but there&#039;s no mention of PostgreSQL). Any help is appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (Nameless)]]></author>
			<pubDate>Tue, 27 Oct 2026 23:21:39 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92303.html#p92303</guid>
		</item>
	</channel>
</rss>
