<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Cara_Backup_Postgres_Docker</id>
	<title>Cara Backup Postgres Docker - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Cara_Backup_Postgres_Docker"/>
	<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=Cara_Backup_Postgres_Docker&amp;action=history"/>
	<updated>2026-11-01T23:38:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=Cara_Backup_Postgres_Docker&amp;diff=389&amp;oldid=prev</id>
		<title>SanzSkuy: /* ambil backup dari database asal */</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=Cara_Backup_Postgres_Docker&amp;diff=389&amp;oldid=prev"/>
		<updated>2025-05-27T08:04:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;ambil backup dari database asal&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:04, 27 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== ambil backup dari database asal ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== ambil backup dari database asal &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(jalanin salah satu) &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;docker exec -i postgres-container pg_dump -U USERNAME DB_NAME &amp;gt; backup.sql     # backup struktur db + data&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;docker exec -i postgres-container pg_dump -U USERNAME DB_NAME &amp;gt; backup.sql     # backup struktur db + data&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=Cara_Backup_Postgres_Docker&amp;diff=388&amp;oldid=prev</id>
		<title>SanzSkuy: Created page with &quot;=== ambil backup dari database asal === &lt;syntaxhighlight lang=bash&gt; docker exec -i postgres-container pg_dump -U USERNAME DB_NAME &gt; backup.sql     # backup struktur db + data docker exec -i postgres-container pg_dump -U USERNAME -a DB_NAME &gt; backup.sql  # backup data only docker exec -i postgres-container pg_dump -U USERNAME -s DB_NAME &gt; backup.sql  # backup struktur only &lt;/syntaxhighlight&gt;  === Backup di container postgres yang baru === &lt;syntaxhighlight lang=bash&gt; docke...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=Cara_Backup_Postgres_Docker&amp;diff=388&amp;oldid=prev"/>
		<updated>2025-05-27T08:04:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== ambil backup dari database asal === &amp;lt;syntaxhighlight lang=bash&amp;gt; docker exec -i postgres-container pg_dump -U USERNAME DB_NAME &amp;gt; backup.sql     # backup struktur db + data docker exec -i postgres-container pg_dump -U USERNAME -a DB_NAME &amp;gt; backup.sql  # backup data only docker exec -i postgres-container pg_dump -U USERNAME -s DB_NAME &amp;gt; backup.sql  # backup struktur only &amp;lt;/syntaxhighlight&amp;gt;  === Backup di container postgres yang baru === &amp;lt;syntaxhighlight lang=bash&amp;gt; docke...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== ambil backup dari database asal ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
docker exec -i postgres-container pg_dump -U USERNAME DB_NAME &amp;gt; backup.sql     # backup struktur db + data&lt;br /&gt;
docker exec -i postgres-container pg_dump -U USERNAME -a DB_NAME &amp;gt; backup.sql  # backup data only&lt;br /&gt;
docker exec -i postgres-container pg_dump -U USERNAME -s DB_NAME &amp;gt; backup.sql  # backup struktur only&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backup di container postgres yang baru ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
docker cp backup.sql new-postgres-container:/backup.sql&lt;br /&gt;
docker exec -i new-postgres-container bash&lt;br /&gt;
&lt;br /&gt;
# di dalam container (pastikan db nya udah ada)&lt;br /&gt;
psql -U USERNAME -d DB_NAME -f /backup.sql&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
</feed>