<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zaki-hmkc</author_name>
  <author_url>https://blog.hatena.ne.jp/zaki-hmkc/</author_url>
  <blog_title>zaki work log</blog_title>
  <blog_url>https://zaki-hmkc.hatenablog.com/</blog_url>
  <categories>
    <anon>Docker</anon>
    <anon>コンテナ</anon>
    <anon>tech</anon>
  </categories>
  <description>postgresコンテナのデータを永続化するにはボリューム指定するのが定石だけど、うっかりしてコンテナ再作成後にデータが消えていた場合のサルベージ方法について。 ちなみにアプリの都合でpostgres:12を使ってるけど、2024年にサポート終了してるのね。本文中はver17の情報にリンク。 データのサルベージ サルベージしたデータでバインドマウント DBバックアップ ボリュームマウントで起動 バックアップデータをリストア アプリケーション(というかDB以外)のコンテナをデプロイ 環境 なお、DBは専門じゃないので「そんなんよりこんな方法があるよ」とかあればぜひ教えてください。 データのサルベ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzaki-hmkc.hatenablog.com%2Fentry%2F2025%2F08%2F30%2F231548&quot; title=&quot; [Docker] PostgreSQLコンテナのボリューム未指定時の場合のデータサルベージとバックアップ・リストア - zaki work log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-30 23:15:48</published>
  <title> [Docker] PostgreSQLコンテナのボリューム未指定時の場合のデータサルベージとバックアップ・リストア</title>
  <type>rich</type>
  <url>https://zaki-hmkc.hatenablog.com/entry/2025/08/30/231548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
