Skip to content

Commit

Permalink
Improved compression ratio of backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
systemcrash authored Oct 19, 2023
1 parent 2ad7ddf commit e3cda5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazarr/utilities/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e3cda5c

Please sign in to comment.