Last active
          September 24, 2015 15:48 
        
      - 
      
- 
        Save wyanez/771849 to your computer and use it in GitHub Desktop. 
    Respaldar una BD comprimida con gzip
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #Backup | |
| pg_dump bd | gzip -c > bd.sql.gz | |
| #Restore | |
| createdb dbname | |
| gunzip -c filename.gz | psql dbname | |
| ó | |
| cat filename.gz | gunzip | psql dbname | |
| http://www.postgresql.org/docs/9.1/static/backup-dump.html | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment