mirror of https://github.com/WordOps/WordOps
Use Zstandard compression with mysqldump
This commit is contained in:
parent
4ba2d14262
commit
db8ee1261d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue