scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 21 Jan 2011 19:57:51 +0530
changeset 512 0e10910f6c46
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Modify the template of the mail.

#! /bin/bash

pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d%H%M%s`.dump
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d%H%M%s`.dump
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d%H%M%s`.dump