diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-18 22:41:47 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-18 22:41:47 +0200 |
commit | 09ae65ab4d1d2442ab5e7558b03c294169707f71 (patch) | |
tree | c0bebdb339bfe4d310c0c0fbbdcbafcb5322fcb7 /servo/management/commands/dbdump.py | |
parent | 085832888a6ebee7f0b2d23c68ef887833f2a94d (diff) | |
download | Servo-09ae65ab4d1d2442ab5e7558b03c294169707f71.tar.gz Servo-09ae65ab4d1d2442ab5e7558b03c294169707f71.tar.bz2 Servo-09ae65ab4d1d2442ab5e7558b03c294169707f71.zip |
Added dumpdb
Diffstat (limited to 'servo/management/commands/dbdump.py')
-rw-r--r-- | servo/management/commands/dbdump.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/servo/management/commands/dbdump.py b/servo/management/commands/dbdump.py deleted file mode 100644 index 58651a8..0000000 --- a/servo/management/commands/dbdump.py +++ /dev/null @@ -1,13 +0,0 @@ -# -*- coding: utf-8 -*- - -import subprocess -from django.conf import settings -from django.core.management.base import BaseCommand - - -class Command(BaseCommand): - help = "Dumps DB of this instance to specified file" - - def handle(self, *args, **options): - dbname = settings.DATABASES['default']['NAME'] - #subprocess.call('pg_dump', '-Fc', dbname, '-U', 'pgsql' > "${BACKUPDIR}/${db}_$(date "+%Y%m%d_%H%M").pgdump" |