<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>PostgreSQL</anon>
  </categories>
  <description>カレントデイレクトリに、DB「foo」にあるテーブルごとのダンプファイルを一括作成する1行です。 $ psql -c '\dt' foo | awk '/public/ { system(&quot;/usr/bin/pg_dump -f ./&quot;$3&quot;.sql -t &quot;$3&quot; foo&quot;) }'戦略は以下。 「\dt」での出力をawkで解析して、テーブルを抜き出し、 個別にpg_dumpを実行 DBをバックアップしたいけど、一部のテーブルだけ対象から除外したいというような場合にどうぞ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20100223%2F1266930570&quot; title=&quot; テーブルごとのダンプを一括作成する1行 - うなの日記&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>2010-02-23 22:09:30</published>
  <title> テーブルごとのダンプを一括作成する1行</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20100223/1266930570</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
