Created
August 17, 2014 18:04
-
-
Save davispuh/4b98e30a2e97d34b04df to your computer and use it in GitHub Desktop.
Quassel backup
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 | |
USER="quassel" | |
DATABASE="quassel" | |
NOW=$(date +"%Y-%m-%d") | |
FILENAME=./db_backup_${DATABASE}_${NOW}.sql.gz | |
pg_dump -U $USER $DATABASE | gzip -9 > $FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment