[pbs-devel] [PATCH v5 proxmox-backup 0/4] add proxmox-backup-debug binary

Hannes Laimer h.laimer at proxmox.com
Thu Apr 29 13:00:12 CEST 2021


Adds a new proxmox-backup-debug binary for recovery or inspection of
index, blob and chunk files

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 (4):
  add chunk inspection to pb-debug
  add ctime and size function to IndexFile trait
  add file inspection to pb-debug
  add index recovery to pb-debug

 Makefile                                |   3 +-
 src/backup/dynamic_index.rs             |   8 +
 src/backup/fixed_index.rs               |   8 +
 src/backup/index.rs                     |   2 +
 src/bin/proxmox-backup-debug.rs         |  25 +++
 src/bin/proxmox_backup_debug/inspect.rs | 267 ++++++++++++++++++++++++
 src/bin/proxmox_backup_debug/mod.rs     |   4 +
 src/bin/proxmox_backup_debug/recover.rs | 115 ++++++++++
 src/tools.rs                            |  12 +-
 9 files changed, 442 insertions(+), 2 deletions(-)
 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.20.1






More information about the pbs-devel mailing list