[pbs-devel] [PATCH proxmox-backup] add inspection in proxmox-backup-manager for .blob, .didx and .fidx files

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 9 10:32:27 CET 2020


On 09.12.20 10:03, Dietmar Maurer wrote:
>> On 12/09/2020 9:42 AM Hannes Laimer <h.laimer at proxmox.com> wrote:
...
>> +pub fn inspect_commands() -> CommandLineInterface {
>> +
>> +    let cmd_def = CliCommandMap::new()
>> +        .insert("blob",CliCommand::new(&API_METHOD_INSPECT_BLOB))
>> +        .insert("fidx",CliCommand::new(&API_METHOD_INSPECT_FIXED_INDEX))
>> +        .insert("didx",CliCommand::new(&API_METHOD_INSPECT_DYNAMIC_INDEX));
> 
> Can't we autodetect the file type?
> 

proxmox-backup-client.rs has a 'parse_archive_type' function we maybe can reuse here,
it's used there when passing an "archive-name" on restore.





More information about the pbs-devel mailing list