scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:12:25 +0530
changeset 489 9cd090b8cd52
parent 487 dad3fd6464b8
child 492 89f8e4266b1f
permissions -rwxr-xr-x
Return whatever context can be shown for non-logged in user for tasks browse.
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
487
dad3fd6464b8 Change the path to dump data directory.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 483
diff changeset
     3
pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump
dad3fd6464b8 Change the path to dump data directory.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 483
diff changeset
     4
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump
dad3fd6464b8 Change the path to dump data directory.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 483
diff changeset
     5
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump
483
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6