diff options
author | Madhusudan.C.S | 2011-01-20 06:22:10 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-20 06:22:10 +0530 |
commit | 7a6979c4907e47462e4409c498ac05169e46ec52 (patch) | |
tree | 67cae84f87ae2fc9162422374ccd887eb3657101 /scripts/profile_schemamigration.sh | |
parent | 10274a06492bf1c196cbfe4764342463ab5c83d0 (diff) | |
download | pytask-7a6979c4907e47462e4409c498ac05169e46ec52.tar.gz pytask-7a6979c4907e47462e4409c498ac05169e46ec52.tar.bz2 pytask-7a6979c4907e47462e4409c498ac05169e46ec52.zip |
Add time to filenames generated for dumps.
Diffstat (limited to 'scripts/profile_schemamigration.sh')
-rwxr-xr-x | scripts/profile_schemamigration.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/profile_schemamigration.sh b/scripts/profile_schemamigration.sh index 9dc7ff5..18b3629 100755 --- a/scripts/profile_schemamigration.sh +++ b/scripts/profile_schemamigration.sh @@ -1,8 +1,8 @@ #! /bin/bash -pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump -./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump -./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump +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 ./bin/django schemamigration profile --auto ./bin/django migrate profile |