diff options
-rw-r--r-- | hbak/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hbak/src/main.rs b/hbak/src/main.rs index d29816c..ce22b56 100644 --- a/hbak/src/main.rs +++ b/hbak/src/main.rs @@ -468,8 +468,6 @@ fn restore( }; for subvol in &local_node.config().subvols { - ensure_unmounted(subvol.clone())?; - let volume = Volume::new_local(local_node, subvol.to_string())?; local_sync_info .volumes @@ -533,6 +531,8 @@ fn restore( if !no_restore { for subvol in &local_node.config().subvols { + ensure_unmounted(subvol.clone())?; + println!("Restoring subvolume {}", subvol); local_node.restore(subvol.clone(), ignore_fstab)?; } |