summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-20 05:56:47 +0530
committerMadhusudan.C.S2011-01-20 05:56:47 +0530
commit7e12e68a752de5756ac798fbfd8be1b3c1441b99 (patch)
treed5b75bfecc5e42812735c9f83b20adf8568c445d
parente26dfcf00ba170db5a6e12888de4dd5b749c8dd3 (diff)
downloadpytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.tar.gz
pytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.tar.bz2
pytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.zip
Adding a database dumpscript. It should be added to cron.
-rwxr-xr-xscripts/dumpdb.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dumpdb.sh b/scripts/dumpdb.sh
new file mode 100755
index 0000000..4d7847c
--- /dev/null
+++ b/scripts/dumpdb.sh
@@ -0,0 +1,6 @@
+#! /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
+