Update backup skriptu
This commit is contained in:
parent
e9d4af35f6
commit
248b150599
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 a new issue