dump: compress zip archives

This commit is contained in:
Phillipp Röll committed 2024-09-15 21:04:54 +02:00
1 parent bad6c54a33
commit 1a7fafc7eb
8 files changed
+22 -45

No files matched your search

+1 -4
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 += "/"