scripts/dumpdb.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:22:10 +0530
changeset 492 89f8e4266b1f
parent 487 dad3fd6464b8
permissions -rwxr-xr-x
Add time to filenames generated for dumps.

#! /bin/bash

pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d%H%M%s`.dump
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d%H%M%s`.dump
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d%H%M%s`.dump