dump: compress zip archives

This commit is contained in:
Phillipp Röll
2024-09-15 21:01:23 +02:00
parent bad6c54a33
commit 1a7fafc7eb
8 changed files with 22 additions and 45 deletions

View File

@@ -39,10 +39,7 @@ func (d *Dumper) dumpNodeZip(ctx context.Context, node *restic.Node, zw *zip.Wri
Modified: node.ModTime,
}
header.SetMode(node.Mode)
if d.compress {
header.Method = zip.Deflate
}
header.Method = zip.Deflate
if node.Type == restic.NodeTypeDir {
header.Name += "/"