Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Last active December 16, 2015 09:28
Show Gist options
  • Save flomotlik/5412867 to your computer and use it in GitHub Desktop.
Save flomotlik/5412867 to your computer and use it in GitHub Desktop.
#!/bin/bash
heroku pgbackups:capture --expire --app YOUR_PRODUCTION_APP_NAME
heroku pgbackups:restore DATABASE `heroku pgbackups:url --app YOUR_PRODUCTION_APP` --app YOUR_STAGING_APP --confirm YOUR_STAGING_APP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment