Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #Backup Database from Heroku
  2.  
  3. ###Enter in project path
  4. ```
  5. cd [project-path]
  6. ```
  7.  
  8. ###Create a new backup file
  9. ```
  10. heroku pg:backups capture
  11. ```
  12.  
  13. ###Get backup URL file
  14. ```
  15. heroku pg:backups public-url
  16. ```
  17.  
  18. ###Restore Backup for your environment
  19. ```
  20. pg_restore --verbose --clean --no-acl --no-owner -n public -h [HOST] -U [DB_USER] -d [DB_PASS] [BKP_FILE_PATH]
  21. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement