compress mysqldump with pigz during site update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user