LoginSignup
4
5

More than 5 years have passed since last update.

heroku上のPostogreをdumpしてローカルにrestoreするワンライナー

Last updated at Posted at 2015-09-25

heroku上のpostgreをlocalのpostgreにrestoreするためのワンライナー
動作確認を行ったのはOSX上のpostgres (PostgreSQL) 9.4.1です

% curl `heroku pg:backups public-url --app <heroku app name>|cat` | pg_restore --verbose --clean --no-acl --no-owner -d <local pg db name> -U <local pg user name>
4
5
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
4
5