Use Zstandard compression with mysqldump

This commit is contained in:
VirtuBox 2020-10-13 00:29:06 +02:00
parent 4ba2d14262
commit db8ee1261d
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 2 additions and 2 deletions

View File

@ -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,