scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Sun, 30 Jan 2011 18:55:15 +0530
changeset 525 d6ad9c1a571b
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Chapters must be created from the Task model. Textbook model don't exist anymore.

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