Skip to content

Commit

Permalink
MySQL does not really support --compress like PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Dec 28, 2020
1 parent 28e7e29 commit 8023b2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weblate/utils/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def database_backup():
if database["USER"]:
cmd += ["--user", database["USER"]]
if settings.DATABASE_BACKUP == "compressed":
cmd += ["--result-file", data_dir("backups", "database.sql.gz")]
cmd += ["--compress"]
cmd += ["|", "gzip", ">", data_dir("backups", "database.sql.gz")]
else:
cmd += ["--result-file", data_dir("backups", "database.sql")]

Expand Down

0 comments on commit 8023b2b

Please sign in to comment.