From da3c02405b51d9374fc42574e213988b7e510910 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 16 Oct 2024 21:09:05 +0200 Subject: [PATCH] dump/zip: only compress regular files --- internal/dump/zip.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 += "/"