mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-22 19:37:30 +08:00
CLI: Make dump faster by changing output method
This commit is contained in:
parent
9d9feab32d
commit
b064d37c0b
1 changed files with 2 additions and 1 deletions
|
@ -1376,7 +1376,8 @@ class ResticRunner:
|
|||
|
||||
cmd = f"dump {snapshot} {path}"
|
||||
# We need to make sure that we get binary output for dumps
|
||||
result, output = self.executor(cmd, encoding=False)
|
||||
# Also, don't use poller method which is too slow
|
||||
result, output = self.executor(cmd, encoding=False, method="monitor")
|
||||
if result:
|
||||
msg = f"File {path} successfully dumped"
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue