Skip to content

Commit

Permalink
Make it a documentation issue then
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Dec 30, 2020
1 parent 20d730c commit 1f63c29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions weblate/utils/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ def database_backup():
cmd += ["--port", database["PORT"]]
if database["USER"]:
cmd += ["--user", database["USER"]]
if settings.DATABASE_BACKUP == "compressed":
cmd += ["|", "gzip", ">", data_dir("backups", "database.sql.gz")]
else:
cmd += ["--result-file", data_dir("backups", "database.sql")]

cmd += ["--result-file", data_dir("backups", "database.sql")]

env["MYSQL_PWD"] = database["PASSWORD"]
else:
Expand All @@ -127,7 +125,6 @@ def database_backup():
stderr=subprocess.PIPE,
stdin=subprocess.DEVNULL,
check=True,
shell=True,
universal_newlines=True,
)
except subprocess.CalledProcessError as error:
Expand Down

0 comments on commit 1f63c29

Please sign in to comment.