forked from jazzband/django-dbbackup
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into func_test_dbbackup
- Loading branch information
Showing
16 changed files
with
158 additions
and
141 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
VERSION = "2.0.5a" | ||
"Management commands to help backup and restore a project database to \ | ||
AmazonS3, Dropbox or local disk." | ||
VERSION = __version__ = "2.0.5a" | ||
__author__ = 'Michael Shepanski' | ||
__email__ = 'mjs7231@gmail.com' | ||
__url__ = 'https://github.com/django-dbbackup/django-dbbackup' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from optparse import make_option | ||
from django.core.management.base import BaseCommand, LabelCommand | ||
|
||
|
||
class BaseDbBackupCommand(LabelCommand): | ||
option_list = BaseCommand.option_list + ( | ||
make_option("--noinput", action='store_false', dest='interactive', default=True, | ||
help='Tells Django to NOT prompt the user for input of any kind.'), | ||
make_option('-q', "--quiet", action='store_true', default=False, | ||
help='Tells Django to NOT output other text than errors.') | ||
) | ||
|
||
verbosity = 1 | ||
quiet = False | ||
|
||
def log(self, msg, level): | ||
if not self.quiet and self.verbosity >= level: | ||
self.stdout.write(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.