Skip to content

Commit

Permalink
Update weblate/utils/tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel authored Jan 5, 2021
1 parent bfb1935 commit 4dc4e4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion weblate/utils/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ def database_backup():

env["PGPASSWORD"] = database["PASSWORD"]
elif database["ENGINE"] == "django.db.backends.mysql":
cmd = ["mysqldump", "--result-file", data_dir("backups", "database.sql")]
cmd = [
"mysqldump",
"--result-file",
data_dir("backups", "database.sql"),
"--single-transaction",
"--skip-lock-tables",
]

if database["HOST"]:
cmd += ["--host", database["HOST"]]
Expand Down

0 comments on commit 4dc4e4b

Please sign in to comment.