[pbs-devel] [PATCH v7 proxmox-backup 0/3] add proxmox-backup-debug binary
Hannes Laimer
h.laimer at proxmox.com
Mon Aug 30 10:53:36 CEST 2021
Adds a new proxmox-backup-debug binary for recovery or inspection of
index, blob and chunk files
v7:
- handle 'text' output-format properly
- describe inspect file a little more
v6(based on Wolfgang Bumiller <w.bumiller at proxmox.com>'s feedback):
- removed unnecessary SCHEMA references
- added few args with arg_param
- removed unnecessary Result wrapping
- moved logic for checking whether decode is to stdout into
decode_blob function
- improved argument description
v5:
- improved some parts based on Dominik Csapak <d.csapak at proxmox.com>
feedback on v4
- changes are described in the patches themself
v4:
- rewrote parts based on Wolfgang Bumiller <w.bumiller at proxmox.com>
feedback on v3
- check filetype mostly by magic number, except when
looking for index files
v3:
- move description into commit message
v2:
- appiled suggestions + rewrote a few parts
- renamed 'restore' to 'debug'<Paste>
Hannes Laimer (3):
add chunk inspection to pb-debug
add file inspection to pb-debug
add index recovery to pb-debug
Makefile | 3 +-
src/bin/proxmox-backup-debug.rs | 15 ++
src/bin/proxmox_backup_debug/inspect.rs | 335 ++++++++++++++++++++++++
src/bin/proxmox_backup_debug/mod.rs | 4 +
src/bin/proxmox_backup_debug/recover.rs | 119 +++++++++
src/tools/mod.rs | 13 +
6 files changed, 488 insertions(+), 1 deletion(-)
create mode 100644 src/bin/proxmox-backup-debug.rs
create mode 100644 src/bin/proxmox_backup_debug/inspect.rs
create mode 100644 src/bin/proxmox_backup_debug/mod.rs
create mode 100644 src/bin/proxmox_backup_debug/recover.rs
--
2.30.2
More information about the pbs-devel
mailing list