Update backup skriptu

This commit is contained in:
Tomas Gavenciak 2015-05-15 15:08:09 +02:00
parent e9d4af35f6
commit 248b150599

View file

@ -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.