From 490f2c80dfac8a9aa68629b79877a83c1a4937f6 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 28 Apr 2019 21:28:13 +0200 Subject: [PATCH] compress mysqldump with pigz during site update --- wo/cli/plugins/site_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index c18581c..807716d 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -697,7 +697,7 @@ def sitebackup(self, data): if data['wo_db_name']: Log.info(self, 'Backing up database \t\t', end='') try: - if not WOShellExec.cmd_exec(self, "mysqldump {0} > {1}/{0}.sql" + if not WOShellExec.cmd_exec(self, "mysqldump --single-transaction {0} | pigz -9 -p\"$(nproc)\" > {1}/{0}.gz" .format(data['wo_db_name'], backup_path)): Log.info(self,