added ability to hide output for database.backup
modified: modules/database.py
This commit is contained in:
parent
9c032714c5
commit
b006e3d419
1 changed files with 4 additions and 2 deletions
|
|
@ -229,7 +229,7 @@ def commandline(dbuser='default'):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def backup(dbuser='default', backup_file=None, branch=None,
|
def backup(dbuser='default', backup_file=None, branch=None,
|
||||||
datadump_only=False):
|
datadump_only=False, hide_output=False):
|
||||||
"""
|
"""
|
||||||
creates a dump of the database for backup and storage
|
creates a dump of the database for backup and storage
|
||||||
|
|
||||||
|
|
@ -305,9 +305,11 @@ def backup(dbuser='default', backup_file=None, branch=None,
|
||||||
user=user,
|
user=user,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
hide_output = False
|
||||||
|
|
||||||
print "cmd_pg_dump: %s" % cmd_pg_dump
|
print "cmd_pg_dump: %s" % cmd_pg_dump
|
||||||
|
|
||||||
output = run_database_command(cmd_pg_dump, user)
|
output = run_database_command(cmd_pg_dump, user, hide=hide_output)
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue