mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:32:06 +00:00
dump: add --compress-zip flag to compress zip archives
This commit is contained in:
@@ -40,6 +40,10 @@ func (d *Dumper) dumpNodeZip(ctx context.Context, node *restic.Node, zw *zip.Wri
|
||||
}
|
||||
header.SetMode(node.Mode)
|
||||
|
||||
if d.compress {
|
||||
header.Method = zip.Deflate
|
||||
}
|
||||
|
||||
if node.Type == restic.NodeTypeDir {
|
||||
header.Name += "/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user