Skip to content

Commit

Permalink
exclude backingFsBlockDev
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Aug 18, 2024
1 parent b84bd4b commit b7b795d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ impl DockerBackup {
Some(excluded_containers) => excluded_containers.collect(),
None => Vec::new(),
};
let excluded_volumes = match matches.remove_many::<String>("excluded_volumes") {
let mut excluded_volumes = match matches.remove_many::<String>("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")
Expand Down

0 comments on commit b7b795d

Please sign in to comment.