updated to xz compression

This commit is contained in:
jenz
2023-02-20 21:52:34 +01:00
parent f51c3c1e60
commit f0fa8b0de1
4 changed files with 24 additions and 21 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ def main():
src.delete_local_zip(zip_file_path)
elif "mysqldump" in job["job_name"]:
src.remote_channel_command(job, "mysqldump")
zipname = src.remote_channel_command(job, "zip_mysqldump")
zipname = src.remote_channel_command(job, "tar_mysqldump")
if zipname is None:
logging.warning(f'failed zipping remote directory at job {job}')
sys.exit(1)
@@ -87,7 +87,7 @@ def main():
sys.exit(1)
src.delete_local_zip(local_zip_path_name)
elif "backup_remote" in job["job_name"]:
zipname = src.remote_channel_command(job, "zip_recursive")
zipname = src.remote_channel_command(job, "tar_recursive")
if zipname is None:
logging.warning(f'failed zipping remote directory at job {job}')
sys.exit(1)