add proxmox-backup-debug debian package
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
4c1b776168
commit
df12c9ec4e
14
Makefile
14
Makefile
|
@ -70,10 +70,12 @@ CLIENT_DEB=${PACKAGE}-client_${DEB_VERSION}_${ARCH}.deb
|
||||||
CLIENT_DBG_DEB=${PACKAGE}-client-dbgsym_${DEB_VERSION}_${ARCH}.deb
|
CLIENT_DBG_DEB=${PACKAGE}-client-dbgsym_${DEB_VERSION}_${ARCH}.deb
|
||||||
RESTORE_DEB=proxmox-backup-file-restore_${DEB_VERSION}_${ARCH}.deb
|
RESTORE_DEB=proxmox-backup-file-restore_${DEB_VERSION}_${ARCH}.deb
|
||||||
RESTORE_DBG_DEB=proxmox-backup-file-restore-dbgsym_${DEB_VERSION}_${ARCH}.deb
|
RESTORE_DBG_DEB=proxmox-backup-file-restore-dbgsym_${DEB_VERSION}_${ARCH}.deb
|
||||||
|
DEBUG_DEB=${PACKAGE}-debug_${DEB_VERSION}_${ARCH}.deb
|
||||||
|
DEBUG_DBG_DEB=${PACKAGE}-debug-dbgsym_${DEB_VERSION}_${ARCH}.deb
|
||||||
DOC_DEB=${PACKAGE}-docs_${DEB_VERSION}_all.deb
|
DOC_DEB=${PACKAGE}-docs_${DEB_VERSION}_all.deb
|
||||||
|
|
||||||
DEBS=${SERVER_DEB} ${SERVER_DBG_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB} \
|
DEBS=${SERVER_DEB} ${SERVER_DBG_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB} \
|
||||||
${RESTORE_DEB} ${RESTORE_DBG_DEB}
|
${RESTORE_DEB} ${RESTORE_DBG_DEB} ${DEBUG_DEB} ${DEBUG_DBG_DEB}
|
||||||
|
|
||||||
DSC = rust-${PACKAGE}_${DEB_VERSION}.dsc
|
DSC = rust-${PACKAGE}_${DEB_VERSION}.dsc
|
||||||
|
|
||||||
|
@ -150,7 +152,8 @@ clean-deb:
|
||||||
rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes build/
|
rm -rf *.deb *.dsc *.tar.gz *.buildinfo *.changes build/
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: ${SERVER_DEB} ${SERVER_DBG_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB}
|
dinstall: ${SERVER_DEB} ${SERVER_DBG_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB} \
|
||||||
|
${DEBUG_DEB} ${DEBUG_DBG_DEB}
|
||||||
dpkg -i $^
|
dpkg -i $^
|
||||||
|
|
||||||
# make sure we build binaries before docs
|
# make sure we build binaries before docs
|
||||||
|
@ -220,10 +223,11 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${SERVER_DEB} ${CLIENT_DEB} ${RESTORE_DEB} ${DOC_DEB}
|
upload: ${SERVER_DEB} ${CLIENT_DEB} ${RESTORE_DEB} ${DOC_DEB} ${DEBUG_DEB}
|
||||||
# check if working directory is clean
|
# check if working directory is clean
|
||||||
git diff --exit-code --stat && git diff --exit-code --stat --staged
|
git diff --exit-code --stat && git diff --exit-code --stat --staged
|
||||||
tar cf - ${SERVER_DEB} ${SERVER_DBG_DEB} ${DOC_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB} | \
|
tar cf - ${SERVER_DEB} ${SERVER_DBG_DEB} ${DOC_DEB} ${CLIENT_DEB} \
|
||||||
ssh -X repoman@repo.proxmox.com upload --product pbs --dist bullseye
|
${CLIENT_DBG_DEB} ${DEBUG_DEB} ${DEBUG_DBG_DEB} \
|
||||||
|
| ssh -X repoman@repo.proxmox.com upload --product pbs --dist bullseye
|
||||||
tar cf - ${CLIENT_DEB} ${CLIENT_DBG_DEB} | ssh -X repoman@repo.proxmox.com upload --product "pve,pmg,pbs-client" --dist bullseye
|
tar cf - ${CLIENT_DEB} ${CLIENT_DBG_DEB} | ssh -X repoman@repo.proxmox.com upload --product "pve,pmg,pbs-client" --dist bullseye
|
||||||
tar cf - ${RESTORE_DEB} ${RESTORE_DBG_DEB} | ssh -X repoman@repo.proxmox.com upload --product "pve" --dist bullseye
|
tar cf - ${RESTORE_DEB} ${RESTORE_DBG_DEB} | ssh -X repoman@repo.proxmox.com upload --product "pve" --dist bullseye
|
||||||
|
|
|
@ -175,3 +175,10 @@ Description: Proxmox Backup single file restore tools for pxar and block device
|
||||||
This package contains the Proxmox Backup single file restore client for
|
This package contains the Proxmox Backup single file restore client for
|
||||||
restoring individual files and folders from both host/container and VM/block
|
restoring individual files and folders from both host/container and VM/block
|
||||||
device backups. It includes a block device restore driver using QEMU.
|
device backups. It includes a block device restore driver using QEMU.
|
||||||
|
|
||||||
|
Package: proxmox-backup-debug
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
${shlibs:Depends},
|
||||||
|
Description: Proxmox Backup debug tool
|
||||||
|
Provides a tool to inspect the files of a Proxmox Backup datastore.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
debian/proxmox-backup-debug.bc proxmox-backup-debug
|
|
@ -0,0 +1,8 @@
|
||||||
|
# proxmox-backup-debug bash completion
|
||||||
|
|
||||||
|
# see http://tiswww.case.edu/php/chet/bash/FAQ
|
||||||
|
# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
|
||||||
|
# this modifies global var, but I found no better way
|
||||||
|
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
|
||||||
|
|
||||||
|
complete -C 'proxmox-backup-debug bashcomplete' proxmox-backup-debug
|
|
@ -0,0 +1,3 @@
|
||||||
|
usr/sbin/proxmox-backup-debug
|
||||||
|
usr/share/man/man1/proxmox-backup-debug.1
|
||||||
|
usr/share/zsh/vendor-completions/_proxmox-backup-debug
|
|
@ -54,6 +54,7 @@ override_dh_strip:
|
||||||
debian/proxmox-backup-client/usr \
|
debian/proxmox-backup-client/usr \
|
||||||
debian/proxmox-backup-server/usr \
|
debian/proxmox-backup-server/usr \
|
||||||
debian/proxmox-backup-file-restore \
|
debian/proxmox-backup-file-restore \
|
||||||
|
debian/proxmox-backup-debug/usr \
|
||||||
-executable -type f); do \
|
-executable -type f); do \
|
||||||
debian/scripts/elf-strip-unused-dependencies.sh "$$exe" || true; \
|
debian/scripts/elf-strip-unused-dependencies.sh "$$exe" || true; \
|
||||||
done
|
done
|
||||||
|
|
|
@ -5,6 +5,7 @@ GENERATED_SYNOPSIS := \
|
||||||
proxmox-backup-client/synopsis.rst \
|
proxmox-backup-client/synopsis.rst \
|
||||||
proxmox-backup-client/catalog-shell-synopsis.rst \
|
proxmox-backup-client/catalog-shell-synopsis.rst \
|
||||||
proxmox-backup-manager/synopsis.rst \
|
proxmox-backup-manager/synopsis.rst \
|
||||||
|
proxmox-backup-debug/synopsis.rst \
|
||||||
proxmox-file-restore/synopsis.rst \
|
proxmox-file-restore/synopsis.rst \
|
||||||
pxar/synopsis.rst \
|
pxar/synopsis.rst \
|
||||||
pmtx/synopsis.rst \
|
pmtx/synopsis.rst \
|
||||||
|
@ -27,7 +28,8 @@ MAN1_PAGES := \
|
||||||
proxmox-backup-proxy.1 \
|
proxmox-backup-proxy.1 \
|
||||||
proxmox-backup-client.1 \
|
proxmox-backup-client.1 \
|
||||||
proxmox-backup-manager.1 \
|
proxmox-backup-manager.1 \
|
||||||
proxmox-file-restore.1
|
proxmox-file-restore.1 \
|
||||||
|
proxmox-backup-debug.1
|
||||||
|
|
||||||
MAN5_PAGES := \
|
MAN5_PAGES := \
|
||||||
media-pool.cfg.5 \
|
media-pool.cfg.5 \
|
||||||
|
@ -199,6 +201,12 @@ proxmox-file-restore/synopsis.rst: ${COMPILEDIR}/proxmox-file-restore
|
||||||
proxmox-file-restore.1: proxmox-file-restore/man1.rst proxmox-file-restore/description.rst proxmox-file-restore/synopsis.rst
|
proxmox-file-restore.1: proxmox-file-restore/man1.rst proxmox-file-restore/description.rst proxmox-file-restore/synopsis.rst
|
||||||
rst2man $< >$@
|
rst2man $< >$@
|
||||||
|
|
||||||
|
proxmox-backup-debug/synopsis.rst: ${COMPILEDIR}/proxmox-backup-debug
|
||||||
|
${COMPILEDIR}/proxmox-backup-debug printdoc > proxmox-backup-debug/synopsis.rst
|
||||||
|
|
||||||
|
proxmox-backup-debug.1: proxmox-backup-debug/man1.rst proxmox-backup-debug/description.rst proxmox-backup-debug/synopsis.rst
|
||||||
|
rst2man $< >$@
|
||||||
|
|
||||||
.PHONY: onlinehelpinfo
|
.PHONY: onlinehelpinfo
|
||||||
onlinehelpinfo:
|
onlinehelpinfo:
|
||||||
@echo "Generating OnlineHelpInfo.js..."
|
@echo "Generating OnlineHelpInfo.js..."
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Implements debugging functionality to inspect Proxmox Backup datastore
|
||||||
|
files, verify the integrity of chunks.
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
==========================
|
||||||
|
proxmox-backup-debug
|
||||||
|
==========================
|
||||||
|
|
||||||
|
.. include:: ../epilog.rst
|
||||||
|
|
||||||
|
-------------------------------------------------------------
|
||||||
|
Debugging command line tool for Backup and Restore
|
||||||
|
-------------------------------------------------------------
|
||||||
|
|
||||||
|
:Author: |AUTHOR|
|
||||||
|
:Version: Version |VERSION|
|
||||||
|
:Manual section: 1
|
||||||
|
|
||||||
|
|
||||||
|
Synopsis
|
||||||
|
==========
|
||||||
|
|
||||||
|
.. include:: synopsis.rst
|
||||||
|
|
||||||
|
Common Options
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. include:: ../output-format.rst
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
============
|
||||||
|
|
||||||
|
.. include:: description.rst
|
||||||
|
|
||||||
|
|
||||||
|
.. include:: ../pbs-copyright.rst
|
|
@ -0,0 +1,13 @@
|
||||||
|
#compdef _proxmox-backup-debug() proxmox-backup-debug
|
||||||
|
|
||||||
|
function _proxmox-backup-debug() {
|
||||||
|
local cwords line point cmd curr prev
|
||||||
|
cworkds=${#words[@]}
|
||||||
|
line=$words
|
||||||
|
point=${#line}
|
||||||
|
cmd=${words[1]}
|
||||||
|
curr=${words[cwords]}
|
||||||
|
prev=${words[cwords-1]}
|
||||||
|
compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
|
||||||
|
proxmox-backup-debug bashcomplete "$cmd" "$curr" "$prev")
|
||||||
|
}
|
Loading…
Reference in New Issue