Skip to content

Instantly share code, notes, and snippets.

@davispuh

davispuh/backup.sh

Created Aug 17, 2014
Embed
What would you like to do?
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
You can’t perform that action at this time.