Make sure the exclude files size is an int

This commit is contained in:
Orsiris de Jong 2024-02-05 19:45:32 +01:00
parent b0964dd151
commit 8056ace752

View file

@ -770,8 +770,8 @@ class ResticRunner:
if exclude_caches:
cmd += " --exclude-caches"
if exclude_files_larger_than:
exclude_files_larger_than = BytesConverter(exclude_files_larger_than).bytes
cmd += f" --exclude-files-larger-than {exclude_files_larger_than}"
exclude_files_larger_than = int(BytesConverter(exclude_files_larger_than).bytes)
cmd += f" --exclude-larger-than {exclude_files_larger_than}"
if one_file_system:
cmd += " --one-file-system"
if use_fs_snapshot: