diff options
author | Paul Dee <[email protected]> | 2023-10-19 23:39:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-19 17:39:02 -0400 |
commit | e3cda5c11e2449b7be1a5b1b81b03db4c49e5075 (patch) | |
tree | b14a9dda51a3a4c65a20de99c828943686c82ca3 | |
parent | 2ad7ddf5a63e42de028e1fd09fccde1b1b086769 (diff) | |
download | bazarr-1.3.2-beta.4.tar.gz bazarr-1.3.2-beta.4.zip |
Improved compression ratio of backup.v1.3.2-beta.4
-rw-r--r-- | bazarr/utilities/backup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bazarr/utilities/backup.py b/bazarr/utilities/backup.py index 7080cf950..95c2234dc 100644 --- a/bazarr/utilities/backup.py +++ b/bazarr/utilities/backup.py @@ -74,7 +74,7 @@ def backup_to_zip(): config_file = os.path.join(args.config_dir, 'config', 'config.yaml') logging.debug(f'Config file path to backup is: {config_file}') - with ZipFile(os.path.join(get_backup_path(), backup_filename), 'w') as backupZip: + with ZipFile(os.path.join(get_backup_path(), backup_filename), 'w', compression=ZIP_DEFLATED, compresslevel=9) as backupZip: if database_backup_file: backupZip.write(database_backup_file, 'bazarr.db') try: |