install pmtx binary
This commit is contained in:
parent
887f1cb90c
commit
c972704477
5
Makefile
5
Makefile
|
@ -8,8 +8,9 @@ SUBDIRS := etc www docs
|
||||||
|
|
||||||
# Binaries usable by users
|
# Binaries usable by users
|
||||||
USR_BIN := \
|
USR_BIN := \
|
||||||
proxmox-backup-client \
|
proxmox-backup-client \
|
||||||
pxar
|
pxar \
|
||||||
|
pmtx
|
||||||
|
|
||||||
# Binaries usable by admins
|
# Binaries usable by admins
|
||||||
USR_SBIN := \
|
USR_SBIN := \
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# pmtx bash completion
|
||||||
|
|
||||||
|
complete -C 'pmtx bashcomplete' pmtx
|
|
@ -1 +1,2 @@
|
||||||
debian/proxmox-backup-manager.bc proxmox-backup-manager
|
debian/proxmox-backup-manager.bc proxmox-backup-manager
|
||||||
|
debian/pmtx.bc pmtx
|
||||||
|
|
|
@ -10,10 +10,13 @@ usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-banner
|
||||||
usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-daily-update
|
usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-daily-update
|
||||||
usr/lib/x86_64-linux-gnu/proxmox-backup/sg-tape-cmd
|
usr/lib/x86_64-linux-gnu/proxmox-backup/sg-tape-cmd
|
||||||
usr/sbin/proxmox-backup-manager
|
usr/sbin/proxmox-backup-manager
|
||||||
|
usr/bin/pmtx
|
||||||
usr/share/javascript/proxmox-backup/index.hbs
|
usr/share/javascript/proxmox-backup/index.hbs
|
||||||
usr/share/javascript/proxmox-backup/css/ext6-pbs.css
|
usr/share/javascript/proxmox-backup/css/ext6-pbs.css
|
||||||
usr/share/javascript/proxmox-backup/images
|
usr/share/javascript/proxmox-backup/images
|
||||||
usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
|
usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
|
||||||
usr/share/man/man1/proxmox-backup-manager.1
|
usr/share/man/man1/proxmox-backup-manager.1
|
||||||
usr/share/man/man1/proxmox-backup-proxy.1
|
usr/share/man/man1/proxmox-backup-proxy.1
|
||||||
|
usr/share/man/man1/pmtx.1
|
||||||
usr/share/zsh/vendor-completions/_proxmox-backup-manager
|
usr/share/zsh/vendor-completions/_proxmox-backup-manager
|
||||||
|
usr/share/zsh/vendor-completions/_pmtx
|
||||||
|
|
|
@ -5,11 +5,13 @@ GENERATED_SYNOPSIS := \
|
||||||
proxmox-backup-client/catalog-shell-synopsis.rst \
|
proxmox-backup-client/catalog-shell-synopsis.rst \
|
||||||
proxmox-backup-manager/synopsis.rst \
|
proxmox-backup-manager/synopsis.rst \
|
||||||
pxar/synopsis.rst \
|
pxar/synopsis.rst \
|
||||||
|
pmtx/synopsis.rst \
|
||||||
backup-protocol-api.rst \
|
backup-protocol-api.rst \
|
||||||
reader-protocol-api.rst
|
reader-protocol-api.rst
|
||||||
|
|
||||||
MANUAL_PAGES := \
|
MANUAL_PAGES := \
|
||||||
pxar.1 \
|
pxar.1 \
|
||||||
|
pmtx.1 \
|
||||||
proxmox-backup-proxy.1 \
|
proxmox-backup-proxy.1 \
|
||||||
proxmox-backup-client.1 \
|
proxmox-backup-client.1 \
|
||||||
proxmox-backup-manager.1
|
proxmox-backup-manager.1
|
||||||
|
@ -67,6 +69,14 @@ pxar/synopsis.rst: ${COMPILEDIR}/pxar
|
||||||
pxar.1: pxar/man1.rst pxar/description.rst pxar/synopsis.rst
|
pxar.1: pxar/man1.rst pxar/description.rst pxar/synopsis.rst
|
||||||
rst2man $< >$@
|
rst2man $< >$@
|
||||||
|
|
||||||
|
|
||||||
|
pmtx/synopsis.rst: ${COMPILEDIR}/pmtx
|
||||||
|
${COMPILEDIR}/pmtx printdoc > pmtx/synopsis.rst
|
||||||
|
|
||||||
|
pmtx.1: pmtx/man1.rst pmtx/description.rst pmtx/synopsis.rst
|
||||||
|
rst2man $< >$@
|
||||||
|
|
||||||
|
|
||||||
proxmox-backup-client/synopsis.rst: ${COMPILEDIR}/proxmox-backup-client
|
proxmox-backup-client/synopsis.rst: ${COMPILEDIR}/proxmox-backup-client
|
||||||
${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst
|
${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Description
|
||||||
|
^^^^^^^^^^^
|
||||||
|
|
||||||
|
The ``pmtx`` command controls SCSI media changer devices (tape
|
||||||
|
autoloader).
|
||||||
|
|
|
@ -0,0 +1,122 @@
|
||||||
|
``pmtx help [{<command>}] [OPTIONS]``
|
||||||
|
|
||||||
|
Get help about specified command (or sub-command).
|
||||||
|
|
||||||
|
:``<command> <array>``: Command. This may be a list in order to spefify nested sub-commands.
|
||||||
|
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--verbose <boolean>``: Verbose help.
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx inquiry [OPTIONS]``
|
||||||
|
|
||||||
|
Inquiry
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
:``--output-format <string>``: Output format.
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx inventory [OPTIONS]``
|
||||||
|
|
||||||
|
Inventory
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx load <slot> [OPTIONS]``
|
||||||
|
|
||||||
|
Load
|
||||||
|
|
||||||
|
:``<slot> <integer>``: Storage slot number (source).
|
||||||
|
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
:``--drivenum <integer>``: Target drive number (defaults to Drive 0)
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx status [OPTIONS]``
|
||||||
|
|
||||||
|
Changer Status
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
:``--output-format <string>``: Output format.
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx transfer <from> <to> [OPTIONS]``
|
||||||
|
|
||||||
|
Transfer
|
||||||
|
|
||||||
|
:``<from> <integer>``: Source storage slot number.
|
||||||
|
|
||||||
|
|
||||||
|
:``<to> <integer>``: Target storage slot number.
|
||||||
|
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
``pmtx unload [OPTIONS]``
|
||||||
|
|
||||||
|
Unload
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
|
||||||
|
:``--changer <string>``: Tape Changer Identifier.
|
||||||
|
|
||||||
|
|
||||||
|
:``--device <string>``: Path to Linux generic SCSI device (e.g. '/dev/sg4')
|
||||||
|
|
||||||
|
|
||||||
|
:``--drivenum <integer>``: Target drive number (defaults to Drive 0)
|
||||||
|
|
||||||
|
|
||||||
|
:``--slot <integer>``: Storage slot number (target). If omitted, defaults to the slot that the drive
|
||||||
|
was loaded from.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
#compdef _pmtx() pmtx
|
||||||
|
|
||||||
|
function _pmtx() {
|
||||||
|
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" \
|
||||||
|
pmtx bashcomplete "$cmd" "$curr" "$prev")
|
||||||
|
}
|
Loading…
Reference in New Issue