mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-02 04:22:26 +00:00
Improved compression ratio of backup.
This commit is contained in:
parent
2ad7ddf5a6
commit
e3cda5c11e
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def backup_to_zip():
|
||||||
config_file = os.path.join(args.config_dir, 'config', 'config.yaml')
|
config_file = os.path.join(args.config_dir, 'config', 'config.yaml')
|
||||||
logging.debug(f'Config file path to backup is: {config_file}')
|
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:
|
if database_backup_file:
|
||||||
backupZip.write(database_backup_file, 'bazarr.db')
|
backupZip.write(database_backup_file, 'bazarr.db')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue