scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:01:49 +0530
changeset 486 c1beaa06a767
parent 483 5e9d16b5d5fb
child 487 dad3fd6464b8
permissions -rwxr-xr-x
Remove the reset_db script. I should not be able to run it even in my dream.
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
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
pg_dump pytask -U pytask -W > ~/dumps/dbdump`date +%Y%m%d`.dump
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
./bin/django dumpscript > ~/dumps/dbdumpscript`date +%Y%m%d`.dump
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
./bin/django dumpdata > ~/dumps/dbdumpdata`date +%Y%m%d`.dump
5e9d16b5d5fb Adding a database dumpscript. It should be added to cron.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6