From 1d4887f832dcd5036eac684f4c7bcb81a0d9508b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 25 Apr 2025 13:12:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/restic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/restic.rs b/src/restic.rs index 10d761c..435c5e0 100644 --- a/src/restic.rs +++ b/src/restic.rs @@ -61,12 +61,12 @@ pub fn create_archive(conf: &ResticConfig) { cmd.push("--exclude-caches"); } - // TODO : fix compression options - let zstd10 = "zstd,10".to_string(); + let zstd10 = "auto".to_string(); let comp = conf.compression.as_ref().unwrap_or(&zstd10); cmd.push("--compression"); cmd.push(comp); + cmd.push("-r"); cmd.push(&conf.repo); let mut snaps = Vec::new();