mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-10 14:11:23 +08:00
Avoid duplicate exclude_files_larger_than treatment
This commit is contained in:
parent
0c1af56ae8
commit
3ee58a2430
1 changed files with 1 additions and 5 deletions
|
|
@ -1002,16 +1002,12 @@ class ResticRunner:
|
|||
|
||||
if exclude_caches:
|
||||
cmd += " --exclude-caches"
|
||||
if exclude_files_larger_than:
|
||||
exclude_files_larger_than = int(
|
||||
BytesConverter(exclude_files_larger_than).bytes
|
||||
)
|
||||
|
||||
if exclude_files_larger_than:
|
||||
try:
|
||||
# Default --exclude_larger_than unit is bytes
|
||||
exclude_files_larger_than = int(
|
||||
BytesConverter(exclude_files_larger_than)
|
||||
BytesConverter(exclude_files_larger_than).bytes
|
||||
)
|
||||
except ValueError:
|
||||
warning = f"Bogus unit for exclude_files_larger_than value given: {exclude_files_larger_than}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue