0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Heroku: S3を利用したPGBackupsを使った運用方法

Posted at

Herokuで、S3を利用したPGBackupsを使った運用方法のTips.
<参考>
https://devcenter.heroku.com/articles/pgbackups
http://psandvs.com/posts/7

1.上記のブログにあるように、AmazonS3にdumpを送る、rakeを実施。
2.下記のコマンドで、s3から、dumpを取得

heroku pgbackups:restore DATABASE 'https://s3.amazonaws.com/XXXXX/XX.dump'

*注:この際に、s3側で、対象ファイルをpublic化する必要がある
3.完了
*注:cacheしているファイルは、表示が戻らないので、意図的にcacheを削除する必要あり

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?