archive: keep timestamps when extracting

This commit is contained in:
Matthew Penner
2021-09-01 09:54:41 -06:00
parent 3b5e042ccc
commit 5cd43dd4c9
6 changed files with 31 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ func (b *LocalBackup) Restore(ctx context.Context, _ io.Reader, callback Restore
if f.IsDir() {
return nil
}
return callback(filesystem.ExtractNameFromArchive(f), f, f.Mode())
return callback(filesystem.ExtractNameFromArchive(f), f, f.Mode(), f.ModTime(), f.ModTime())
}
})
}