Created
November 15, 2013 14:18
-
-
Save bsnux/7485014 to your computer and use it in GitHub Desktop.
Backup PostgreSQL
This file contains 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
#!/bin/bash | |
pg_dump mydb -U myuser | gzip > /home/user/db_backups/`date '+%Y-%m-%d-%H-%M'`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment