fix: fallback to mysqldump if mariadb-dump isn't available

This commit is contained in:
Ankush Menat 2023-10-11 19:29:33 +05:30
parent e47492b4db
commit fc16af2ac9

View file

@ -367,7 +367,7 @@ class BackupGenerator:
from frappe.utils.change_log import get_app_branch
db_exc = {
"mariadb": ("mariadb-dump", which("mariadb-dump")),
"mariadb": ("mariadb-dump", which("mariadb-dump") or which("mysqldump")),
"postgres": ("pg_dump", which("pg_dump")),
}[self.db_type]
gzip_exc = which("gzip")