mirror of
https://github.com/restic/restic.git
synced 2026-10-22 08:58:11 +00:00
dump: compress zip archives
This commit is contained in:
1 parent
bad6c54a33
commit
1a7fafc7eb
8 files changed
+22
-45
No files matched your search
@@ -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 += "/"
|
||||
|
||||
Reference in new issue
Block a user