Browse Source

Update backup skriptu

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
248b150599
  1. 6
      backup_prod_db.sh

6
backup_prod_db.sh

@ -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…
Cancel
Save