<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>architshin</author_name>
  <author_url>https://blog.hatena.ne.jp/architshin/</author_url>
  <blog_title>Archit!!</blog_title>
  <blog_url>https://architshin.hatenablog.com/</blog_url>
  <categories>
    <anon>Heroku</anon>
  </categories>
  <description>Herokuのパイプラインを使っていると、DB内の本番環境データをステージング環境のDBにコピーしたい時がある。その場合は、以下のコマンドを使う。 heroku pg:backups:restore sushi::b101 DATABASE_URL --app sushi-staging この場合、sushiが本番環境のアプリ名、sushi-stagingがステージング環境のアプリ名、b101はコピーしたいバックアップ名を表す。こちらは適宜置き換える。一方、DATABASE_URLは、環境変数を表すので、このまま入力する。 この情報は、Herokuの公式ドキュメントのHeroku PGBack…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farchitshin.hatenablog.com%2Fentry%2F2019%2F03%2F13%2F174827&quot; title=&quot;Herokuで本番環境のDBをステージング環境のDBにコピー - Archit!!&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>2019-03-13 17:48:27</published>
  <title>Herokuで本番環境のDBをステージング環境のDBにコピー</title>
  <type>rich</type>
  <url>https://architshin.hatenablog.com/entry/2019/03/13/174827</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
