scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 05:59:47 +0530
changeset 484 d2a4fcbe2fae
parent 483 5e9d16b5d5fb
child 487 dad3fd6464b8
permissions -rwxr-xr-x
A python script to load the data of tasks from CSV to database.

#! /bin/bash

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