Skip to content

Commit 80aba57

Browse files
committed
Change the 7-zip compression level
1 parent f39e9e5 commit 80aba57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,9 @@ def start_saving(self):
12081208
os.system(f"echo > {CACHE}/save_config/.folder.sd && mv {CACHE}/save_config '{self.folder}/{self.filename_text}'")
12091209
else:
12101210
if settings["enable-encryption"] == True:
1211-
os.system(f'7z a -tzip -mx=6 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
1211+
os.system(f'7z a -tzip -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
12121212
else:
1213-
os.system(f"7z a -tzip -mx=6 -x!*.zip -x!saving_status cfg.sd.zip .")
1213+
os.system(f"7z a -tzip -mx=3 -x!*.zip -x!saving_status cfg.sd.zip .")
12141214
if self.cancel_process:
12151215
return
12161216
else:

src/periodic_saving.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def get_password_from_file(self):
8787
except:
8888
self.password = None
8989
if self.password != None:
90-
os.system(f'7z a -tzip -mx=6 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
90+
os.system(f'7z a -tzip -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
9191
else:
92-
os.system(f"7z a -tzip -mx=6 -x!*.zip -x!saving_status cfg.sd.zip .")
92+
os.system(f"7z a -tzip -mx=3 -x!*.zip -x!saving_status cfg.sd.zip .")
9393
shutil.copyfile('cfg.sd.zip', f'{self.pbfolder}/{self.filename}.sd.zip')
9494

9595
def save_last_backup_date(self):

0 commit comments

Comments
 (0)