From b7b795d75b2a154474a3c3560eafac92a4807022 Mon Sep 17 00:00:00 2001 From: Radekor500 Date: Sun, 18 Aug 2024 15:13:24 +0300 Subject: [PATCH] exclude backingFsBlockDev --- src/backup/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backup/mod.rs b/src/backup/mod.rs index ba164d8..9d68ff5 100644 --- a/src/backup/mod.rs +++ b/src/backup/mod.rs @@ -106,11 +106,13 @@ impl DockerBackup { Some(excluded_containers) => excluded_containers.collect(), None => Vec::new(), }; - let excluded_volumes = match matches.remove_many::("excluded_volumes") { + let mut excluded_volumes = match matches.remove_many::("excluded_volumes") { Some(excluded_volumes) => excluded_volumes.collect(), None => Vec::new(), }; + excluded_volumes.push("backingFsBlockDev".to_string()); + DockerBackup { dest_paths: matches .remove_many::<(String, TargetOs)>("dest_path")