From db8ee1261d825b39f2cb8f165fd3562928ca0a34 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 13 Oct 2020 00:29:06 +0200 Subject: [PATCH] Use Zstandard compression with mysqldump --- wo/cli/plugins/site_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index e042342..f4a5e93 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -810,8 +810,8 @@ def sitebackup(self, data): Log.info(self, 'Backing up database \t\t', end='') try: if not WOShellExec.cmd_exec(self, "mysqldump --single-transaction " - "{0} | pigz -9 -p\"$(nproc)\" " - "> {1}/{0}.gz" + "{0} | zstd -T0 -c" + "> {1}/{0}.zst" .format(data['wo_db_name'], backup_path)): Log.info(self,