Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/lib/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ def do_backup(self, listItem=None):
self.backup_dlg.create('LibreELEC', oe._(32375))
if not os.path.exists(self.BACKUP_DESTINATION):
os.makedirs(self.BACKUP_DESTINATION)
self.backup_file = f'{hostname.get_hostname()}-{oe.timestamp()}.tar'
self.backup_file = f'{hostname.get_hostname()}-{oe.timestamp()}.tar.zst'
log.log(f'Backup file: {bckDir + self.backup_file}', log.INFO)
tar = tarfile.open(bckDir + self.backup_file, 'w', format=tarfile.GNU_FORMAT)
tar = tarfile.open(bckDir + self.backup_file, mode='w:zst', level=3, format=tarfile.GNU_FORMAT)
for directory in self.BACKUP_DIRS:
self.tar_add_folder(tar, directory)
if self.backup_dlg is None or self.backup_dlg.iscanceled():
Expand Down