mirror of
https://github.com/restic/restic.git
synced 2026-10-27 10:48:55 +00:00
prune: no longer disable automatic index updates
this allows prune to resume an interrupted prune run.
This commit is contained in:
1 parent
9aa0c90fb2
commit
68fa0e0305
3 files changed
-18
No files matched your search
@@ -162,9 +162,6 @@ func runPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions, term
|
||||
}
|
||||
|
||||
func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOptions, repo *repository.Repository, ignoreSnapshots restic.IDSet, term *termstatus.Terminal) error {
|
||||
// we do not need index updates while pruning!
|
||||
repo.DisableAutoIndexUpdate()
|
||||
|
||||
if repo.Cache == nil {
|
||||
Print("warning: running prune without a cache, this may be very slow!\n")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user