diff --git a/internal/dump/zip.go b/internal/dump/zip.go index 6041c5187..17aeb4829 100644 --- a/internal/dump/zip.go +++ b/internal/dump/zip.go @@ -39,7 +39,9 @@ func (d *Dumper) dumpNodeZip(ctx context.Context, node *restic.Node, zw *zip.Wri Modified: node.ModTime, } header.SetMode(node.Mode) - header.Method = zip.Deflate + if node.Type == restic.NodeTypeFile { + header.Method = zip.Deflate + } if node.Type == restic.NodeTypeDir { header.Name += "/"