mirror of
https://github.com/restic/restic.git
synced 2025-10-09 13:49:58 +00:00
restore: add deletions to progress output
This commit is contained in:
@@ -499,6 +499,7 @@ func (res *Restorer) removeUnexpectedFiles(target, location string, expectedFile
|
||||
selectedForRestore, _ := res.SelectFilter(nodeLocation, false)
|
||||
// only delete files that were selected for restore
|
||||
if selectedForRestore {
|
||||
res.opts.Progress.ReportDeletedFile(nodeLocation)
|
||||
if !res.opts.DryRun {
|
||||
if err := fs.RemoveAll(nodeTarget); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user