mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-27 13:57:26 +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}"
|
cmd = f"dump {snapshot} {path}"
|
||||||
# We need to make sure that we get binary output for dumps
|
# 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:
|
if result:
|
||||||
msg = f"File {path} successfully dumped"
|
msg = f"File {path} successfully dumped"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue