Fix zstd compression on Debian

This commit is contained in:
VirtuBox
2021-01-08 14:49:09 +01:00
parent 383b9d4250
commit 2dc3ed560f
2 changed files with 3 additions and 3 deletions

View File

@@ -812,7 +812,7 @@ def sitebackup(self, data):
try:
if not WOShellExec.cmd_exec(
self, "mysqldump --single-transaction --hex-blob "
"{0} | zstd -T0 -c > {1}/{0}.zst"
"{0} | zstd -c > {1}/{0}.zst"
.format(data['wo_db_name'],
backup_path)):
Log.info(self,

View File

@@ -114,7 +114,7 @@ class WOMysql():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True)
p2 = subprocess.Popen(
"/usr/bin/zstd -T0 -c > "
"/usr/bin/zstd -c > "
"/var/lib/wo-backup/mysql/{0}{1}.sql.zst"
.format(dbs, WOVar.wo_date),
stdin=p1.stdout, shell=True)
@@ -135,7 +135,7 @@ class WOMysql():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True)
p2 = subprocess.Popen(
"/usr/bin/zstd -T0 -c > "
"/usr/bin/zstd -c > "
"/var/lib/wo-backup/mysql/fulldump-{0}.sql.zst"
.format(WOVar.wo_date),
stdin=p1.stdout, shell=True)