Tomas Gavenciak
10 years ago
1 changed files with 3 additions and 3 deletions
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
DBNAME=mam |
DBNAME=mam-prod |
||||
FNAME=backup-db/$DBNAME-prod-`date '+%F-%T'`.bz2 |
FNAME=backup-db/$DBNAME-`date '+%F-%T'`.bz2 |
||||
echo Backing up production DB $DBNAME to $FNAME ... |
echo Backing up production DB $DBNAME to $FNAME ... |
||||
|
|
||||
pg_dump $DBNAME | bzip2 -9 > $FNAME |
pg_dump $DBNAME -U mam | bzip2 -9 > $FNAME |
||||
|
|
||||
echo Done. |
echo Done. |
||||
|
|
||||
|
Loading…
Reference in new issue