compress mysqldump with pigz during site update

This commit is contained in:
VirtuBox
2019-04-28 21:28:13 +02:00
parent b0671c0e74
commit 490f2c80df

View File

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