Tomas Gavenciak
10 years ago
1 changed files with 3 additions and 3 deletions
@ -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. |
|||
|
|||
|
Loading…
Reference in new issue