diff --git a/backup_prod_db.sh b/backup_prod_db.sh index 99bc5429..e31512a5 100755 --- a/backup_prod_db.sh +++ b/backup_prod_db.sh @@ -1,10 +1,10 @@ #!/bin/bash -DBNAME=mam -FNAME=backup-db/$DBNAME-prod-`date '+%F-%T'`.bz2 +DBNAME=mam-prod +FNAME=backup-db/$DBNAME-`date '+%F-%T'`.bz2 echo Backing up production DB $DBNAME to $FNAME ... -pg_dump $DBNAME | bzip2 -9 > $FNAME +pg_dump $DBNAME -U mam | bzip2 -9 > $FNAME echo Done.