scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 02:14:28 +0530
changeset 538 478c7fc9a223
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Create a package for taskapp views and break the views into task and textbook. Now all the view functions common to any two entities along with all tasks related views sit in task module. Even if the view is not directly related to the task entity, it sits in the task module since task is the base for every other entity in the application.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
483
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
#! /bin/bash
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
492
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 487
diff changeset
     3
pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d%H%M%s`.dump
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 487
diff changeset
     4
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d%H%M%s`.dump
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 487
diff changeset
     5
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d%H%M%s`.dump
483
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6