scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:02:04 +0530
changeset 487 dad3fd6464b8
parent 483 5e9d16b5d5fb
child 492 89f8e4266b1f
permissions -rwxr-xr-x
Change the path to dump data directory.

#! /bin/bash

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