Skip to content

Instantly share code, notes, and snippets.

@davispuh
Created August 17, 2014 18:04
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 davispuh/4b98e30a2e97d34b04df to your computer and use it in GitHub Desktop.
Save davispuh/4b98e30a2e97d34b04df to your computer and use it in GitHub Desktop.
Quassel backup
#!/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