diff options
author | Madhusudan.C.S | 2011-01-20 05:56:47 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-20 05:56:47 +0530 |
commit | 7e12e68a752de5756ac798fbfd8be1b3c1441b99 (patch) | |
tree | d5b75bfecc5e42812735c9f83b20adf8568c445d | |
parent | e26dfcf00ba170db5a6e12888de4dd5b749c8dd3 (diff) | |
download | pytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.tar.gz pytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.tar.bz2 pytask-7e12e68a752de5756ac798fbfd8be1b3c1441b99.zip |
Adding a database dumpscript. It should be added to cron.
-rwxr-xr-x | scripts/dumpdb.sh | 6 |
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 + |