scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 07:56:21 +0530
changeset 497 6386458d749b
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
List each department textbooks separately for now, think of a clever way later.

#! /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