Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created May 28, 2010 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/417784 to your computer and use it in GitHub Desktop.
Save mrrooijen/417784 to your computer and use it in GitHub Desktop.
Simple script that creates and downloads a Heroku backup (App Repository, DBDump) and then destroys the remote backup.
bundle=backup
app=myapp
heroku bundles:capture $bundle --app $app
sleep 15
heroku bundles:download $bundle --app $app
heroku bundles:destroy $bundle --app $app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment