add --disable-scanner to backup command

The scanner process has only cosmetic effect for the progress printer,
and can be disabled without impacting functionality when the user does
not need an estimate of completion.

In many cases the scanner process can provide beneficial priming of
the file system cache, so as general advice it should not be disabled.
However, tests have shown that backup of NFS and fuse based filesystems,
where stat(2) is relatively expensive, can be significantly faster
without the scanner.
This commit is contained in:
Kjetil Torgrim Homme
2022-09-14 17:20:11 +02:00
committed by Michael Eischer
parent 7bdb985dde
commit 14aa6f2a00
3 changed files with 30 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
Enhancement: Allow backup file tree scanner to be disabled
Restic walks the file tree in a separate scanner process to find the total size
and file/directory count, and uses that to provide an ETA. This can slow down
backups, especially of network filesystems. The new flag `--no-scan`
can be used to speed up such backups.
https://github.com/restic/restic/pull/3931