api2: tape: restore: add warning for list restore
if an error occurs, the snapshot dirs will already be created, and we do not clean them up (some might already be finished). Warn the user that they are not cleaned up. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
31c94d1645
commit
2072dede4a
@ -647,6 +647,10 @@ fn restore_list_worker(
|
||||
Ok(())
|
||||
});
|
||||
|
||||
if res.is_err() {
|
||||
task_warn!(worker, "Error during restore, partially restored snapshots will NOT be cleaned up");
|
||||
}
|
||||
|
||||
match std::fs::remove_dir_all(&base_path) {
|
||||
Ok(()) => {}
|
||||
Err(err) => task_warn!(worker, "error cleaning up: {}", err),
|
||||
|
Loading…
Reference in New Issue
Block a user