mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 13:17:42 +00:00
dump/zip: only compress regular files
This commit is contained in:
parent
1a7fafc7eb
commit
da3c02405b
@ -39,7 +39,9 @@ func (d *Dumper) dumpNodeZip(ctx context.Context, node *restic.Node, zw *zip.Wri
|
||||
Modified: node.ModTime,
|
||||
}
|
||||
header.SetMode(node.Mode)
|
||||
if node.Type == restic.NodeTypeFile {
|
||||
header.Method = zip.Deflate
|
||||
}
|
||||
|
||||
if node.Type == restic.NodeTypeDir {
|
||||
header.Name += "/"
|
||||
|
Loading…
Reference in New Issue
Block a user