tape: skip catalog archives in restore
This commit is contained in:
parent
f1d76ecf6c
commit
8b1289f3e4
@ -448,6 +448,16 @@ fn restore_archive<'a>(
|
|||||||
catalog.end_chunk_archive()?;
|
catalog.end_chunk_archive()?;
|
||||||
catalog.commit_if_large()?;
|
catalog.commit_if_large()?;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
PROXMOX_BACKUP_CATALOG_ARCHIVE_MAGIC_1_0 => {
|
||||||
|
let header_data = reader.read_exact_allocated(header.size as usize)?;
|
||||||
|
|
||||||
|
let archive_header: CatalogArchiveHeader = serde_json::from_slice(&header_data)
|
||||||
|
.map_err(|err| format_err!("unable to parse catalog archive header - {}", err))?;
|
||||||
|
|
||||||
|
task_log!(worker, "File {}: skip catalog '{}'", current_file_number, archive_header.uuid);
|
||||||
|
|
||||||
|
reader.skip_to_end()?; // read all data
|
||||||
}
|
}
|
||||||
_ => bail!("unknown content magic {:?}", header.content_magic),
|
_ => bail!("unknown content magic {:?}", header.content_magic),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user